-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 935 Bytes
/
bats.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
name: "E2E Tests"
on:
pull_request:
branches: [main]
jobs:
integration:
name: End to End Test
runs-on: ubuntu-latest
steps:
- name: Login to GCR
uses: docker/login-action@v3
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: actions/checkout@v3
- id: 'gcp-auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- name: Run e2e tests
run: nix develop -c make e2e
env:
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
TF_VAR_bq_creds: ${{ secrets.GOOGLE_SA_BASE64 }}
TF_VAR_name_prefix: "lava_gha_ci"