Skip to content

Commit

Permalink
Add testing and linting in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosavola committed Feb 23, 2022
1 parent 1396770 commit 4af4dd2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI
on:
push:
branches:
- otax/production
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: 'npm'
- run: npm install --include=dev
- run: better-npm-run test

lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install --include=dev
- run: npm run lint

0 comments on commit 4af4dd2

Please sign in to comment.