Skip to content

Build and Test

Build and Test #775

Workflow file for this run

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