chore: updated packages versions #1708
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Test | |
on: | |
push: | |
branches-ignore: | |
- changeset-release/master | |
- changeset-release/develop | |
paths-ignore: | |
- '**/node_modules/**' | |
- '.github/**' | |
- '.github/*' | |
- '.changeset/**' | |
- '*.md' | |
pull_request: | |
paths-ignore: | |
- '**/node_modules/**' | |
- '.github/**' | |
- '.github/*' | |
branches-ignore: | |
- renovate* | |
- changeset-release/develop | |
- changeset-release/master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
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- | |
- run: yarn --immutable | |
- run: yarn lint | |
- run: yarn build | |
- name: Get changed files in the packages folder | |
id: changed-files-specific | |
uses: tj-actions/[email protected] | |
with: | |
files_ignore: | | |
.github/** | |
.changeset/** | |
packages/**/package.json | |
packages/**/*.{md,mdx} | |
!*.md | |
- name: Run __tests__ (coverage) | |
if: github.event_name == 'pull_request' && steps.changed-files-specific.outputs.any_changed == 'true' | |
run: | | |
yarn rebuild | |
export FORCE_COLOR=true | |
export TEST_MNEMONIC=${{ secrets.TEST_MNEMONIC }} | |
yarn test |