Skip to content

Commit

Permalink
GITHUB: Add test job
Browse files Browse the repository at this point in the history
  • Loading branch information
MineGame159 committed Jan 28, 2024
1 parent cd3bce0 commit 8b4af34
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
- name: Build
run: go build -o fireball ./cmd

- name: Cache fireball
uses: actions/cache/save@v3
with:
path: fireball
key: ${{ runner.os }}-${{ hashFiles('fireball') }}

- name: Set up Node
uses: actions/setup-node@v3
with:
Expand All @@ -40,4 +46,27 @@ jobs:
with:
path: |
fireball
vscode/*.vsix
vscode/*.vsix
test:
runs-on: ubuntu-latest
needs: "build"
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Get fireball from cache
uses: actions/cache/restore@v3
with:
path: fireball
key: ${{ runner.os }}-${{ hashFiles('fireball') }}

- name: Install LLVM
uses: KyleMayes/install-llvm-action@v1
with:
version: "17.0.2"

- name: Run tests
run: |
cd tests
../fireball test

0 comments on commit 8b4af34

Please sign in to comment.