Skip to content

Commit

Permalink
Add job for test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
buehlmann committed Nov 13, 2024
1 parent 995a604 commit 6111d05
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/dagger-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Test'
on:
push:
branches:
- dagger-ci
jobs:
test:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: 'test'
uses: dagger/[email protected]
with:
verb: call
module: ci
args: test --dir=./
version: '0.14.0'
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
4 changes: 4 additions & 0 deletions .github/workflows/dagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ jobs:
args: ci-integration --dir=./
- name: Test Reporter
uses: dorny/[email protected]
with:
name: JEST Tests # Name of the check run which will be created
path: reports/jest-*.xml # Path to test results
reporter: jest-junit # Format of test results
1 change: 1 addition & 0 deletions ci/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func (m *Ci) Test(ctx context.Context, dir *dagger.Directory) *dagger.Container
WithExec([]string{"bundle", "exec", "rails", "db:create"}).
WithExec([]string{"bundle", "exec", "rails", "db:migrate"}).
WithExec([]string{"bundle", "exec", "rails", "assets:precompile"}).
Terminal().
WithExec([]string{"bundle", "exec", "rails", "test", "test/controllers", "test/domain", "test/fabricators", "test/fixtures", "test/helpers", "test/mailers", "test/models", "test/presenters", "test/support", "test/tarantula"})
}

Expand Down

0 comments on commit 6111d05

Please sign in to comment.