1
0
Fork 0
mirror of https://github.com/actions/setup-go synced 2024-11-14 01:22:40 +00:00
setup-go/.github/workflows/workflow.yml

40 lines
771 B
YAML
Raw Permalink Normal View History

2020-02-09 05:21:39 +00:00
name: build-test
on:
push:
branches:
2020-07-22 12:04:56 +00:00
- main
2020-02-09 05:21:39 +00:00
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
2019-07-11 20:16:54 +00:00
jobs:
run:
name: Run
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest]
2019-07-26 02:59:14 +00:00
steps:
2021-11-08 10:28:08 +00:00
- name: Checkout
uses: actions/checkout@v2
2019-07-23 17:24:08 +00:00
2022-02-10 21:40:06 +00:00
- name: Setup node 16
uses: actions/setup-node@v2
2021-11-08 10:28:08 +00:00
with:
2022-02-10 21:40:06 +00:00
node-version: 16
cache: npm
2019-07-11 20:16:54 +00:00
2021-11-08 10:28:08 +00:00
- name: npm install
run: npm install
2019-07-11 20:16:54 +00:00
2021-11-08 10:28:08 +00:00
- name: Lint
run: npm run format-check
2019-07-11 20:16:54 +00:00
2021-11-08 10:28:08 +00:00
- name: npm test
run: npm test
2020-02-09 19:41:37 +00:00
2021-11-08 10:28:08 +00:00
- name: audit packages
run: npm audit --audit-level=high
if: matrix.operating-system == 'ubuntu-latest'