mirror of
https://gitea.com/actions/setup-go.git
synced 2024-11-14 08:05:38 +01:00
35 lines
601 B
YAML
35 lines
601 B
YAML
name: build-test
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- '**.md'
|
|
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@v2
|
|
|
|
- name: Setup node 12
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12
|
|
|
|
- name: npm install
|
|
run: npm install
|
|
|
|
- name: Lint
|
|
run: npm run format-check
|
|
|
|
- name: npm test
|
|
run: npm test
|