Skip to content

Merge pull request #655 from liquality/dependabot/github_actions/dev/… #1538

Merge pull request #655 from liquality/dependabot/github_actions/dev/…

Merge pull request #655 from liquality/dependabot/github_actions/dev/… #1538

Workflow file for this run

name: Build Test
on:
push:
pull_request:
paths-ignore:
- '**/node_modules/**'
- '.github/**'
- '.github/*'
branches-ignore:
- renovate*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: 16
# yarn cache
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Restore yarn cache
uses: actions/[email protected]
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: |
yarn-cache-folder-
# execute commands
- run: yarn
- run: yarn lint
- run: yarn build
- name: Run tests
run: |
yarn test