42 lines (32 loc) · 929 Bytes
/
cli.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
name: Cli
concurrency:
group: cli-${{ github.head_ref }}
cancel-in-progress: true
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
default-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Remove non-nix binary
run: rm -rf ~/.cargo/bin
- name: Clippy cargo-sewup
run: nix develop --ignore-environment -c cargo clippy -p cargo-sewup
env:
RUST_BACKTRACE: 1
- name: Init default project test
run: nix develop -c 'cli-init-test' default
- name: Init rusty project test
run: nix develop -c 'cli-init-test' rusty
- name: Init auto project test
run: nix develop -c 'cli-init-test' auto