Update workflows to use reusable-workflows
This commit is contained in:
34
.github/workflows/workflow.yml
vendored
34
.github/workflows/workflow.yml
vendored
@@ -1,4 +1,5 @@
|
||||
name: build-test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -8,32 +9,9 @@ on:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
|
||||
jobs:
|
||||
run:
|
||||
name: Run
|
||||
runs-on: ${{ matrix.operating-system }}
|
||||
strategy:
|
||||
matrix:
|
||||
operating-system: [ubuntu-latest, windows-latest]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup node 16
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: npm
|
||||
|
||||
- name: npm ci
|
||||
run: npm ci
|
||||
|
||||
- name: Lint
|
||||
run: npm run format-check
|
||||
|
||||
- name: npm test
|
||||
run: npm test
|
||||
|
||||
- name: audit packages
|
||||
run: npm audit --audit-level=high
|
||||
if: matrix.operating-system == 'ubuntu-latest'
|
||||
call-basic-validation:
|
||||
name: Basic validation
|
||||
#uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main
|
||||
uses: IvanZosimov/reusable-workflows/.github/workflows/basic-validation.yml@main
|
||||
|
Reference in New Issue
Block a user