This repository was archived by the owner on Feb 28, 2025. It is now read-only.
Commit a5497fa 1 parent 02a0e91 commit a5497fa Copy full SHA for a5497fa
File tree 5 files changed +12
-20
lines changed
5 files changed +12
-20
lines changed Original file line number Diff line number Diff line change 20
20
- name : Upload coverage to Codecov
21
21
uses : codecov/codecov-action@v3
22
22
with :
23
- token : ${{ secrets.CODECOV_TOKEN }}
23
+ token : ${{ secrets.CODECOV_TOKEN }}
24
24
files : lcov.info
25
25
fail_ci_if_error : true
Original file line number Diff line number Diff line change 1
1
name : Docker Image Build Push
2
-
3
2
on :
4
3
push :
5
4
tags :
6
5
- " *"
7
-
8
6
concurrency :
9
7
group : " docker-image"
10
8
cancel-in-progress : true
11
-
12
9
jobs :
13
10
build :
14
11
runs-on : ubuntu-latest
15
12
steps :
16
- -
17
- name : Checkout
13
+ - name : Checkout
18
14
uses : actions/checkout@v3
19
- -
20
- name : Set up QEMU
15
+ - name : Set up QEMU
21
16
uses : docker/setup-qemu-action@v2
22
- -
23
- name : Set up Docker Buildx
17
+ - name : Set up Docker Buildx
24
18
uses : docker/setup-buildx-action@v2
25
-
26
19
- name : Generate repository name
27
20
run : |
28
21
echo "REPOSITORY_PATH=$( echo ${GITHUB_REPOSITORY} | tr '[:upper:]' '[:lower:]' )" >> ${GITHUB_ENV}
29
22
echo "REPOSITORY_SHA=$( echo ${GITHUB_SHA} | cut -c 1-8 )" >> ${GITHUB_ENV}
30
- -
31
- name : Login to GitHub Container Registry
23
+ - name : Login to GitHub Container Registry
32
24
uses : docker/login-action@v2
33
25
with :
34
26
registry : ghcr.io
35
27
username : ${{ github.repository_owner }}
36
28
password : ${{ secrets.GITHUB_TOKEN }}
37
- -
38
- name : Build and Push
29
+ - name : Build and Push
39
30
uses : docker/build-push-action@v3
40
31
with :
41
32
context : .
49
40
ghcr.io/${{ env.REPOSITORY_PATH }}:v${{ github.ref_name }}
50
41
ghcr.io/${{ env.REPOSITORY_PATH }}:${{ env.REPOSITORY_SHA }}
51
42
ghcr.io/${{ env.REPOSITORY_PATH }}:latest
52
- -
53
- name : GitHub Release
43
+ - name : GitHub Release
54
44
uses : actions/create-release@v1
55
45
env :
56
46
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ jobs:
34
34
profile : minimal
35
35
override : true
36
36
- name : Run tests
37
+ run : |
38
+ cargo test --tests tests -p lib-didethresolver --all-features
37
39
env :
38
40
CARGO_INCREMENTAL : 0
39
- run : |
40
- cargo test --workspace --all-features --tests tests
41
41
id : test
42
42
- name : Invoke cargo doc
43
43
run : |
Original file line number Diff line number Diff line change 21
21
uses : docker/build-push-action@v3
22
22
with :
23
23
context : .
24
- file : prod/Dockerfile
24
+ file : prod/Dockerfile
25
25
platforms : linux/amd64
26
26
push : false
27
27
build-args : |
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ COPY --from=ghcr.io/xmtp/foundry:latest /usr/local/bin/anvil /usr/local/bin/anvi
15
15
16
16
COPY --chown=xmtp:xmtp . .
17
17
18
+ RUN yamlfmt -lint .github/workflows/*.yml
19
+
18
20
ENV CARGO_INCREMENTAL=${CARGO_INCREMENTAL:-1}
19
21
RUN cargo check --all-features
20
22
RUN cargo fmt --check --all
You can’t perform that action at this time.
0 commit comments