feat: implement spec tests (#5) #20
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: Main | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the repository. | |
- uses: actions/checkout@v4 | |
# Install Bun. | |
- name: Install Bun | |
run: | | |
curl -fsSL https://bun.sh/install | bash | |
export PATH="$HOME/.bun/bin:$PATH" | |
# Append Bun's bin folder to the GitHub Actions PATH. | |
echo "$HOME/.bun/bin" >> $GITHUB_PATH | |
bun --version | |
# (Optional) Install dependencies if you use bun install. | |
- name: Install Dependencies | |
run: bun install | |
# Run unit tests using "bun test:unit" | |
- name: Unit Tests | |
run: bun test:unit | |
- name: Download spec tests | |
run: bun download-spec-tests | |
- name: Spec tests | |
run: bun test:spec |