Skip to content

Merge pull request #52 from anchore/chore/update-upload-action #95

Merge pull request #52 from anchore/chore/update-upload-action

Merge pull request #52 from anchore/chore/update-upload-action #95

Workflow file for this run

name: CI
on: # rebuild any PRs and main branch changes
pull_request:
branches: [main]
push:
branches:
- main
release:
types:
- created
- edited
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
env:
CI: true
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm install
- run: npm run format-check
env:
CI: true
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm install
- run: npm run lint
env:
CI: true
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm install
- run: npm run test-unit
env:
CI: true