mirror of
https://github.com/foomo/fender.git
synced 2026-06-28 13:50:12 +00:00
Bumps the github-actions group with 1 update: [jdx/mise-action](https://github.com/jdx/mise-action). Updates `jdx/mise-action` from 3 to 4 - [Release notes](https://github.com/jdx/mise-action/releases) - [Changelog](https://github.com/jdx/mise-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/jdx/mise-action/compare/v3...v4) --- updated-dependencies: - dependency-name: jdx/mise-action dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
46 lines
1011 B
YAML
46 lines
1011 B
YAML
name: Test Branch
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
merge_group:
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- uses: jdx/mise-action@v4
|
|
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
check-latest: true
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Setup golangci-lint cache
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: /home/runner/.cache/golangci-lint
|
|
key: golangci-lint-${{ runner.os }}-${{ hashFiles('**/go.mod') }}
|
|
restore-keys: |
|
|
golangci-lint-${{ runner.os }}-
|
|
|
|
- name: Run go mod tidy
|
|
run: make tidy && git diff --exit-code
|
|
|
|
- name: Run go generate
|
|
run: make generate && git diff --exit-code
|
|
|
|
- name: Run go lint
|
|
run: make lint
|
|
|
|
- name: Run go tests
|
|
run: make test
|