feat: migrate to vitest and merry in gardenfi/core (#31) #6
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: Run Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install merry | |
run: curl https://get.merry.dev | bash | |
- name: Start merry | |
run: merry go --headless | |
- name: install dependencies | |
run: | | |
corepack enable | |
yarn set version 4.3.1 | |
yarn install | |
yarn run build | |
- run: yarn run test | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- name: install dependencies | |
run: | | |
corepack enable | |
yarn set version 4.3.1 | |
yarn install | |
- run: yarn run build |