-
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (66 loc) · 2.06 KB
/
Copy pathci.yml
File metadata and controls
66 lines (66 loc) · 2.06 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
# SPDX-License-Identifier: MPL-2.0
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
rust:
name: Rust (seamctl)
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v4
- uses: dtolnay/rust-toolchain@6d9817901c499d6b02debbb57edb38d33daa680b # stable
with:
components: rustfmt, clippy
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v4
with:
path: |
~/.cargo/registry
~/.cargo/git
tools/seamctl/target
key: ${{ runner.os }}-cargo-${{ hashFiles('tools/seamctl/Cargo.lock') }}
- name: fmt
run: cargo fmt --manifest-path tools/seamctl/Cargo.toml --all -- --check
- name: clippy
run: cargo clippy --manifest-path tools/seamctl/Cargo.toml -- -D warnings
- name: test
run: cargo test --manifest-path tools/seamctl/Cargo.toml
- name: seamctl validate
run: cargo run --quiet --manifest-path tools/seamctl/Cargo.toml -- validate
elixir:
name: Elixir (seamstressd)
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v4
- uses: erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124 # v1
with:
otp-version: "26.2.1"
elixir-version: "1.16.0"
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v4
with:
path: |
services/seamstressd/deps
services/seamstressd/_build
key: ${{ runner.os }}-mix-${{ hashFiles('services/seamstressd/mix.lock') }}
- name: deps
run: |
cd services/seamstressd
mix deps.get
- name: format
run: |
cd services/seamstressd
mix format --check-formatted
- name: test
run: |
cd services/seamstressd
mix test