-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (36 loc) · 1 KB
/
run_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
on:
schedule:
- cron: "0 0/8 * * *" # Every 8 hours
workflow_dispatch:
env:
# Dagger
DAGGER_PLAN: cue.mod/pkg/github.com/3box/pipeline-tools/ci/plans/tests.cue
DAGGER_LOG_FORMAT: "plain"
# Secrets
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
name: Run Tests on ECS
jobs:
run_ecs_tasks:
name: Run ECS Task
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Install Dagger
uses: dagger/dagger-for-github@v3
with:
install-only: true
-
name: Setup Dagger
run: |
dagger project init
dagger project update
dagger project update "github.com/3box/pipeline-tools/ci"
-
name: Run integration tests
run: dagger do -l error test -w "actions:test:\"${{ secrets.AWS_REGION }}\":qa:test_e2e:_" -p ${{ env.DAGGER_PLAN }}