Skip to content

Update aio cli

Update aio cli #422

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
node-version: [18.14.2]
steps:
- uses: actions/checkout@v2
- name: Setup unit test environment
run: sudo apt-get install librsvg2-bin imagemagick exiftool
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Log used OS
run: uname -a
- name: Run directory
run: pwd
- name: Install aio
run: npm install -g @adobe/[email protected]
- name: Log aio details
run: aio info
- name: Docker login
run: docker login -u $REGISTRY_ID -p $REGISTRY_SECRET adobeassetcompute.azurecr.io
env:
REGISTRY_ID: ${{ secrets.AZURE_CONTAINER_REGISTRY_ID }}
REGISTRY_SECRET: ${{ secrets.AZURE_CONTAINER_REGISTRY_SECRET }}
- name: Install dependencies (all)
run: npm install
- name: Run unit tests
run: npm test
- name: Report coverage
run: npm run report-coverage
sizewatcher:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/checkout@v2
- run: npx @adobe/sizewatcher
semantic-release:
runs-on: ubuntu-latest
needs: [build]
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') && github.ref == 'refs/heads/master' }}
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js 12.19
uses: actions/setup-node@v1
with:
node-version: "14.17"
- run: npm install
- run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.ADOBE_BOT_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}