-
Notifications
You must be signed in to change notification settings - Fork 23
62 lines (60 loc) · 1.7 KB
/
modules-test.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: modules-test
permissions:
contents: read
on:
push:
branches: [main]
paths:
- modules/**
pull_request:
paths:
- modules/**
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
required:
runs-on: ubuntu-latest
name: ubuntu / ${{ matrix.toolchain }}
strategy:
matrix:
toolchain: [stable, beta]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup sccache
uses: mozilla-actions/[email protected]
with:
version: "v0.4.2"
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
working-directory: ./modules
run: cargo generate-lockfile
# https://twitter.com/jonhoo/status/1571290371124260865
- name: cargo test --locked
working-directory: ./modules
run: cargo test --locked --all-features --all-targets
# coverage:
# runs-on: ubuntu-latest
# steps:
# - name: tickle coverage
# env:
# CCI_TOKEN: ${{ secrets.CCI_TOKEN }}
# CIRCLE_BRANCH: ${{ github.head_ref }}
# run: |
# echo $CIRCLE_BRANCH;
# curl -X POST \
# -H "Circle-Token: ${CCI_TOKEN}" \
# -H 'Content-Type: application/json' \
# -H 'Accept: application/json' \
# -d "{
# \"branch\": \"${CIRCLE_BRANCH}\",
# \"parameters\": {
# \"GHA_Meta\": \"modules_coverage\"
# }
# }" https://circleci.com/api/v2/project/gh/AbstractSDK/abstract/pipeline