Skip to content

Commit

Permalink
ci(runner): add runner test ci (#296)
Browse files Browse the repository at this point in the history
This commit adds a new GitHub action that runs the worker tests on main branch commits and pull requests.
  • Loading branch information
rickstaa authored Dec 9, 2024
1 parent 43bb888 commit a579cf3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ai-worker-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run AI Worker Tests

on:
push:
branches:
- main
paths:
- "worker/**"
pull_request:
paths:
- "worker/**"

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"

- name: Install dependencies
working-directory: worker
run: go mod tidy

- name: Run tests
working-directory: worker
run: go test ./...

0 comments on commit a579cf3

Please sign in to comment.