Skip to content

Merge pull request #601 from button-inc/600-fix-named-imports #964

Merge pull request #601 from button-inc/600-fix-named-imports

Merge pull request #601 from button-inc/600-fix-named-imports #964

Workflow file for this run

name: Install Packages Run Lint and Unit Tests
on: push
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install asdf
uses: asdf-vm/actions/setup@v1
- uses: actions/cache@v2
id: asdf-cache
with:
path: |
/home/runner/.asdf
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
- name: Install asdf tools
run: |
cat .tool-versions | cut -f 1 -d ' ' | xargs -n 1 asdf plugin-add || true
asdf plugin-update --all
asdf install
asdf reshim
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Yarn Dependencies
run: |
yarn
- name: Rerun Pre-Commit Hooks in CI
run: |
pip install -r requirements.txt
asdf reshim
chmod +x .bin/format.sh
pre-commit run -a -v
- name: Unit test
run: |
yarn llink
yarn build
yarn test:jest
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v2