File tree 4 files changed +14
-14
lines changed
4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ jobs:
36
36
- uses : extractions/setup-just@v1
37
37
with :
38
38
just-version : 1.10.0
39
+ - uses : Swatinem/rust-cache@v2
40
+ with :
41
+ key : ${{ runner.os }}-${{ hashFiles('Cargo.lock') }}-${{ matrix.toolchain }}
39
42
- uses : dtolnay/rust-toolchain@master
40
43
with :
41
44
toolchain : ${{ matrix.toolchain }}
42
45
components : clippy, rustfmt
43
- - uses : Swatinem/rust-cache@v2
44
- with :
45
- key : ${{ runner.os }}-${{ hashFiles('Cargo.lock') }}-${{ matrix.toolchain }}
46
46
- name : Install musl tools
47
47
run : |
48
48
sudo apt-get install -y musl-tools
53
53
- name : Run tests
54
54
run : |
55
55
just test
56
- # just test-init-image
57
56
cd pid1 && just test
58
57
if : runner.os == 'Linux'
58
+ - name : Run pid1 tests
59
+ run : just test-init-image
60
+ if : runner.os == 'Linux'
59
61
- name : clippy
60
62
run : cargo clippy -- --deny "warnings"
61
63
- name : fmt
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ test: build-release-binary
13
13
14
14
# Test docker image
15
15
test-init-image :
16
- docker run --rm --name pid --interactive pid1runner ps aux
17
- docker run --rm --name pid --interactive pid1runner ls
18
- docker run --rm --name pid --interactive pid1runner ls /
19
- docker run --rm --name pid --interactive pid1runner id
20
- docker run --rm --name pid --interactive pid1runner --workdir=/ home pwd
21
- docker run --rm --name pid --interactive pid1runner --env HELLO=WORLD --env =FOO=BYE printenv HELLO FOO
16
+ docker run --rm --interactive --name pid pid1runner ps aux
17
+ docker run --rm --interactive --name pid pid1runner ls
18
+ docker run --rm --interactive --name pid pid1runner ls /
19
+ docker run --rm --interactive --name pid pid1runner id
20
+ docker run --rm --interactive --name pid pid1runner --workdir=/ home pwd
21
+ docker run --rm --interactive --name pid pid1runner --env HELLO=WORLD --env =FOO=BYE printenv HELLO FOO
22
22
23
23
# Exec init image
24
24
exec-init-image :
Original file line number Diff line number Diff line change 1
- FROM alpine:3.18.4
1
+ FROM ubuntu:22.04
2
2
3
3
COPY pid1 /usr/bin/pid1
4
4
Original file line number Diff line number Diff line change 1
- FROM alpine
2
-
3
- RUN apk update && apk add coreutils procps
1
+ FROM ubuntu:22.04
4
2
5
3
COPY simple /simple
6
4
You can’t perform that action at this time.
0 commit comments