Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit a5497fa

Browse files
committed
43: introducing yamlfmt
1 parent 02a0e91 commit a5497fa

File tree

5 files changed

+12
-20
lines changed

5 files changed

+12
-20
lines changed

.github/workflows/coverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ jobs:
2020
- name: Upload coverage to Codecov
2121
uses: codecov/codecov-action@v3
2222
with:
23-
token: ${{ secrets.CODECOV_TOKEN }}
23+
token: ${{ secrets.CODECOV_TOKEN }}
2424
files: lcov.info
2525
fail_ci_if_error: true

.github/workflows/ghcr-image.yml

+6-16
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,32 @@
11
name: Docker Image Build Push
2-
32
on:
43
push:
54
tags:
65
- "*"
7-
86
concurrency:
97
group: "docker-image"
108
cancel-in-progress: true
11-
129
jobs:
1310
build:
1411
runs-on: ubuntu-latest
1512
steps:
16-
-
17-
name: Checkout
13+
- name: Checkout
1814
uses: actions/checkout@v3
19-
-
20-
name: Set up QEMU
15+
- name: Set up QEMU
2116
uses: docker/setup-qemu-action@v2
22-
-
23-
name: Set up Docker Buildx
17+
- name: Set up Docker Buildx
2418
uses: docker/setup-buildx-action@v2
25-
2619
- name: Generate repository name
2720
run: |
2821
echo "REPOSITORY_PATH=$( echo ${GITHUB_REPOSITORY} | tr '[:upper:]' '[:lower:]' )" >> ${GITHUB_ENV}
2922
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
3224
uses: docker/login-action@v2
3325
with:
3426
registry: ghcr.io
3527
username: ${{ github.repository_owner }}
3628
password: ${{ secrets.GITHUB_TOKEN }}
37-
-
38-
name: Build and Push
29+
- name: Build and Push
3930
uses: docker/build-push-action@v3
4031
with:
4132
context: .
@@ -49,8 +40,7 @@ jobs:
4940
ghcr.io/${{ env.REPOSITORY_PATH }}:v${{ github.ref_name }}
5041
ghcr.io/${{ env.REPOSITORY_PATH }}:${{ env.REPOSITORY_SHA }}
5142
ghcr.io/${{ env.REPOSITORY_PATH }}:latest
52-
-
53-
name: GitHub Release
43+
- name: GitHub Release
5444
uses: actions/create-release@v1
5545
env:
5646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/github-pages.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
profile: minimal
3535
override: true
3636
- name: Run tests
37+
run: |
38+
cargo test --tests tests -p lib-didethresolver --all-features
3739
env:
3840
CARGO_INCREMENTAL: 0
39-
run: |
40-
cargo test --workspace --all-features --tests tests
4141
id: test
4242
- name: Invoke cargo doc
4343
run: |

.github/workflows/prod-ci-image.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: docker/build-push-action@v3
2222
with:
2323
context: .
24-
file: prod/Dockerfile
24+
file: prod/Dockerfile
2525
platforms: linux/amd64
2626
push: false
2727
build-args: |

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ COPY --from=ghcr.io/xmtp/foundry:latest /usr/local/bin/anvil /usr/local/bin/anvi
1515

1616
COPY --chown=xmtp:xmtp . .
1717

18+
RUN yamlfmt -lint .github/workflows/*.yml
19+
1820
ENV CARGO_INCREMENTAL=${CARGO_INCREMENTAL:-1}
1921
RUN cargo check --all-features
2022
RUN cargo fmt --check --all

0 commit comments

Comments
 (0)