-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 1.07 KB
/
Copy pathci.yml
File metadata and controls
30 lines (30 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
name: CI
on:
pull_request:
jobs:
Build:
if: github.event.pull_request.merged == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: GCP setup
uses: google-github-actions/setup-gcloud@master
with:
version: "285.0.0"
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo install cargo2junit
- run: "mkdir junit-report && cargo test -- -Z unstable-options --format json | cargo2junit > junit-report/testreport.xml"
- env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT" > github-context.json
- env:
RUST_BACKTRACE: "1"
RUST_LOG: "cikit=debug"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: "cargo run -- --config-path ci.config.toml . test-report github-context.json html"