Files
archived-next-auth/.github/workflows/build.yml
2020-12-05 19:47:09 +01:00

32 lines
640 B
YAML

# Simple check that the build is valid and no linting errors.
# Currently is run as a seperate workflow as it's fast to fail.
name: Build Test
on:
push:
branches:
- main
- canary
pull_request:
branches:
- main
- canary
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 ci
- run: npm run build
- run: npm run lint