Merge pull request #182 from autonomys/fix/packages-dedupe-resolution #520
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
name: Build all packages and run tests | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Set Yarn version to Berry | |
run: corepack prepare [email protected] --activate | |
- name: Install dependencies | |
run: yarn install | |
- name: Build all packages 🔧 | |
run: yarn build | |
- name: Run tests 🧪 | |
run: yarn test |