-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.07 KB
/
test.yml
File metadata and controls
45 lines (38 loc) · 1.07 KB
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
40
41
42
43
44
name: Test
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test
runs-on: blacksmith-16vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-test
- name: Load secrets
uses: 1password/load-secrets-action@v3
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
OP_ENV_FILE: .github/secrets.env.tpl
- run: |
mise run postgres:up --extra-args "--detach --wait"
- name: Run tests
env:
# REMEMBER TO ADD ENVIRONMENT VARIABLES TO tests/docker-compose.yml
# The tests/docker-compose.yml config passes the ENV vars into the container
RUST_BACKTRACE: "1"
run: |
mise run --output prefix test
- uses: ./.github/actions/send-slack-notification
with:
channel: engineering
webhook_url: ${{ env.SLACK_NOTIFICATION_WEBHOOK_URL }}