mirror of
https://github.com/actions/setup-go.git
synced 2025-06-18 23:02:59 -06:00
Update workflows to use reusable-workflows
This commit is contained in:
parent
339692abda
commit
1370292ad9
5 changed files with 30 additions and 83 deletions
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue