synclounge/.github/workflows/test.yml

46 lines
943 B
YAML
Raw Normal View History

2020-09-10 19:08:29 +00:00
name: test
2020-10-01 01:18:23 +00:00
on:
pull_request:
2020-09-10 19:08:29 +00:00
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [12, 14, 15]
2020-09-10 19:08:29 +00:00
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
2020-09-10 19:08:29 +00:00
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.4
2020-09-10 19:08:29 +00:00
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
2020-09-10 21:52:56 +00:00
id: cache
uses: actions/cache@v2.1.3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
2020-09-10 21:52:56 +00:00
- name: Cache hit
run: echo ${{ steps.cache.outputs.cache-hit }}
- name: Install dependencies
run: npm ci
2020-09-10 19:08:29 +00:00
env:
SKIP_BUILD: true
- name: Lint
run: npm run lint -- --no-fix
- name: Build
2020-09-28 22:30:03 +00:00
run: npm run build