-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (57 loc) · 1.48 KB
/
ci.yaml
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lychee_links:
name: Broken URL Checking
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Run lychee
uses: lycheeverse/[email protected]
with:
fail: true
spelling:
name: Spell Checking
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: typos
uses: crate-ci/typos@master
conventional_commits:
name: Conventional Commit Checking
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: cocogitto check
uses: oknozor/cocogitto-action@v3
expand_template:
name: Expand Template
runs-on: ubuntu-latest
# FIXME: fix expand template step error
if: false
env:
PROJECT_NAME: basic-tests
CARGO_GENERATE_VALUE_CI: true
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Expand template
uses: cargo-generate/cargo-generate-action@latest
with:
name: ${{ env.PROJECT_NAME }}
arguments: "--values-file ./cargo_generate/values.toml"
- name: Build setup
uses: ./.github/actions/build_setup
- run: |
mv $PROJECT_NAME ${{ runner.temp }}/
cd ${{ runner.temp }}/$PROJECT_NAME
# IMPROVEMENT: add more tests / CI steps
cargo check