Skip to content

Commit

Permalink
Create testandlint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alserz1 authored Nov 23, 2021
0 parents commit a29c5d0
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/testandlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test and lint

on:
push:
branches-ignore:
- 'rc-**'

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20

steps:
- uses: actions/checkout@v2

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Prepare
run: npm install

- name: Test
run: npm run test

- name: ESLint
run: npm run lint

0 comments on commit a29c5d0

Please sign in to comment.