Skip to content

Commit

Permalink
Setup GitHub actions to run tests and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
valscion committed Dec 2, 2020
1 parent 9b84418 commit bb74281
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: main
on: [push, pull_request]
jobs:
build-and-test:
strategy:
matrix:
node:
- '10'
- '12'
- '14'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Download deps
uses: bahmutov/npm-install@v1

- name: Build sources
run: npm run build

- name: Run tests
run: npm run test

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '14.x'

- name: Download deps
uses: bahmutov/npm-install@v1

- name: Run lint
run: npm run lint

0 comments on commit bb74281

Please sign in to comment.