-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (70 loc) · 1.82 KB
/
Copy pathci.yaml
File metadata and controls
77 lines (70 loc) · 1.82 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
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: CI
on:
push:
branches:
- main
- develop
pull_request:
types:
- opened
- reopened
- synchronize
schedule:
- cron: 0 0 * * 1-5
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: "${{ !contains(github.ref, 'main')}}"
jobs:
validate-changesets:
name: Validate changesets
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Checkout Mono
uses: actions/checkout@v4
with:
repository: appsignal/mono
path: tmp/mono
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Validate changesets
run: tmp/mono/bin/mono changeset validate
build:
name: "cargo build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo build --verbose
test:
name: "cargo test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo test --verbose
clippy:
name: "Rust clippy"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup component add clippy
- run: cargo clippy --verbose --tests --all-targets --all-features -- -D warnings
formatter:
name: "Rust formatter"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup component add rustfmt
- run: cargo fmt --check --verbose
cross_compile:
name: "Cross compile"
uses: ./.github/workflows/build_release.yaml
with:
branch: "${{ github.head_ref || github.ref_name }}"
upload_artifacts: false
run_versioning: false
secrets:
DOCKERHUB_USERNAME: ${{secrets.PUBLISH_DOCKERHUB_USERNAME}}
DOCKERHUB_TOKEN: ${{secrets.PUBLISH_DOCKERHUB_TOKEN}}