try fixing workflow #35
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, pull_request] | |
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: Install Bun | |
run: | | |
curl -fsSL https://bun.sh/install | bash | |
echo 'export PATH="$HOME/.bun/bin:$PATH"' >> $GITHUB_ENV | |
- name: Install dependencies | |
run: bun install | |
env: | |
PATH: ${{ env.PATH }}:~/.bun/bin | |
- name: Install dependencies | |
run: bun install | |
- name: Build auto-utils package 🔧 | |
run: bun run --filter '@autonomys/auto-utils' build | |
- name: Build all packages 🔧 | |
run: bun build | |
- name: Run tests 🧪 | |
run: bun test |