This repository was archived by the owner on Sep 2, 2025. It is now read-only.
chore(deps): update github-actions #515
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - beta | |
| release: | |
| types: | |
| - created | |
| pull_request: | |
| branches: | |
| - master | |
| - beta | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| uses: miracum/.github/.github/workflows/standard-build.yaml@61598243fff8ce6ef7bd312e26d586b2dd10d7b3 # v1.16.23 | |
| permissions: | |
| contents: write | |
| id-token: write | |
| packages: write | |
| pull-requests: write | |
| actions: read | |
| security-events: write | |
| with: | |
| enable-build-test-layer: false | |
| enable-upload-test-image: false | |
| platforms: | | |
| linux/amd64 | |
| linux/arm64 | |
| secrets: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| test: | |
| needs: | |
| - build | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| # <https://docs.docker.com/storage/containerd/> | |
| # via <https://github.com/docker/setup-buildx-action/issues/257> | |
| - name: Set up containerd image store | |
| shell: bash | |
| run: | | |
| [ -f /etc/docker/daemon.json ] || echo "{}" | sudo tee /etc/docker/daemon.json | |
| jq '. | .+{"features": {"containerd-snapshotter": true}}' /etc/docker/daemon.json > /tmp/docker-daemon-with-containerd.json | |
| sudo mv /tmp/docker-daemon-with-containerd.json /etc/docker/daemon.json | |
| cat /etc/docker/daemon.json | |
| sudo systemctl restart docker | |
| docker info -f '{{ .DriverStatus }}' | |
| - name: Checkout | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| with: | |
| persist-credentials: false | |
| - name: Download container image | |
| if: ${{ github.event_name == 'pull_request' }} | |
| uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 | |
| with: | |
| name: ${{ needs.build.outputs.image-slug }} | |
| path: /tmp | |
| - name: Load image | |
| if: ${{ github.event_name == 'pull_request' }} | |
| run: | | |
| ls -lar /tmp | |
| docker load --input /tmp/image.tar | |
| docker image ls -a | |
| - name: Start compose fixtures | |
| run: | | |
| docker compose up wait-for-pathling | |
| - name: Install .NET | |
| uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 | |
| with: | |
| dotnet-version: "9.0.x" | |
| - name: Run tests | |
| env: | |
| PATHLING_S3_IMPORT_IMAGE_TAG: ${{ needs.build.outputs.image-version }} | |
| run: dotnet test src/PathlingS3Import.Tests.E2E --configuration=Release -l "console;verbosity=detailed" | |
| - name: Print compose logs | |
| if: always() | |
| run: | | |
| docker compose logs | |
| docker compose down --volumes --remove-orphans | |
| lint: | |
| uses: miracum/.github/.github/workflows/standard-lint.yaml@61598243fff8ce6ef7bd312e26d586b2dd10d7b3 # v1.16.23 | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| security-events: write | |
| actions: read | |
| with: | |
| enable-validate-gradle-wrapper: false | |
| codeql-languages: '["csharp"]' | |
| enable-codeql: true | |
| enable-verify-base-image-signature: false | |
| secrets: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| release: | |
| uses: miracum/.github/.github/workflows/standard-release.yaml@61598243fff8ce6ef7bd312e26d586b2dd10d7b3 # v1.16.23 | |
| needs: | |
| - build | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| secrets: | |
| semantic-release-token: ${{ secrets.MIRACUM_BOT_SEMANTIC_RELEASE_TOKEN }} |