build(go): ⬆️ bump github.com/samber/slog-multi from 1.2.3 to 1.2.4 #915
Workflow file for this run
This file contains 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: Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
concurrency: | |
group: "tests" | |
cancel-in-progress: false | |
env: | |
MAGEARGS: -d build/magefiles -w . | |
TARGETPLATFORM: linux/amd64 | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: block | |
allowed-endpoints: > | |
api.codecov.io:443 | |
api.github.com:443 | |
azure.archive.ubuntu.com:80 | |
cli.codecov.io:443 | |
esm.ubuntu.com:443 | |
github.com:443 | |
motd.ubuntu.com:443 | |
objects.githubusercontent.com:443 | |
packages.microsoft.com:443 | |
proxy.golang.org:443 | |
raw.githubusercontent.com:443 | |
storage.googleapis.com:443 | |
sum.golang.org:443 | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
id: setup_go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Install Mage | |
uses: magefile/mage-action@6a5dcb5fe61f43d7c08a98bc3cf9bc63c308c08e # v3 | |
with: | |
install-only: true | |
- name: Run tests | |
run: mage ${MAGEARGS} tests:ci | |
- name: Upload Coverage | |
id: upload_coverage | |
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4 | |
continue-on-error: true | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: ./coverage.txt | |
fail_ci_if_error: false | |
golangci: | |
runs-on: ubuntu-22.04 | |
permissions: | |
pull-requests: read # Use with `only-new-issues` option. | |
steps: | |
- uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
azure.archive.ubuntu.com:80 | |
esm.ubuntu.com:443 | |
github.com:443 | |
motd.ubuntu.com:443 | |
objects.githubusercontent.com:443 | |
packages.microsoft.com:443 | |
proxy.golang.org:443 | |
raw.githubusercontent.com:443 | |
storage.googleapis.com:443 | |
sum.golang.org:443 | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: 'go.mod' | |
cache: false # golangci-lint maintains its own cache | |
- name: Install Mage | |
uses: magefile/mage-action@6a5dcb5fe61f43d7c08a98bc3cf9bc63c308c08e # v3 | |
with: | |
install-only: true | |
- name: Install build deps | |
run: mage ${MAGEARGS} preps:deps | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 | |
with: | |
only-new-issues: true | |
github-token: ${{ secrets.GITHUB_TOKEN }} |