Skip to content

Commit

Permalink
Improve github action test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
YouKnowBlom committed Dec 12, 2020
1 parent dfabc48 commit 3679671
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,26 @@
name: Main
name: Test

on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

jobs:
jest:
name: Jest
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [14]
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@2

- name: Setup node env
uses: actions/setup-node@v2.1.2
with:
node-version: ${{ matrix.node }}
node-version: 14

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand All @@ -41,8 +34,9 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn
run: yarn install --frozen-lockfile

- name: Run tests
run: yarn test
run: yarn run test

0 comments on commit 3679671

Please sign in to comment.