-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 1019 Bytes
/
build.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
40
name: Build and Test
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '21 2 * * 1-5' # every weekday at 2:21 AM UTC
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: rust-toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
- name: Checkout
uses: actions/checkout@v3
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Build
run: cargo build --verbose
- name: Run unit tests
run: make test
- name: Set environment variables
run: |
echo "GRAPHQL_API_URL=${{ secrets.GRAPHQL_API_URL }}" >> $GITHUB_ENV
echo "GRAPHQL_HEALTH_URL=${{ secrets.GRAPHQL_HEALTH_URL }}" >> $GITHUB_ENV
- name: Run integration tests
run: make integrationtests