Skip to content

Fix examples, tests and update rocket integration #41

Fix examples, tests and update rocket integration

Fix examples, tests and update rocket integration #41

Workflow file for this run

name: Integration
on:
push:
pull_request:
branches:
# Branches from forks have the form 'user:branch-name' so we only run
# this job on pull_request events for branches that look like fork
# branches. Without this we would end up running this job twice for non
# forked PRs, once for the push and then once for opening the PR.
- '**:**'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable]
steps:
- uses: hecrj/setup-rust-action@master
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Extract Test Credentials
if: matrix.os != 'windows-latest'
env:
SERVICE_ACCOUNT_JSON: ${{ secrets.SERVICE_ACCOUNT_JSON }}
run: ./tests/extract_test_credentials.sh
- name: Build And Test
if: matrix.os != 'windows-latest'
run: cargo test
- name: Build on Windows
if: matrix.os == 'windows-latest'
run: cargo build