chore: rename workflow

This commit is contained in:
franklin 2023-01-27 15:55:55 +01:00
parent 8e7d0a227e
commit 4535e78be1
2 changed files with 5 additions and 11 deletions

View File

@ -1,5 +1,4 @@
# This workflow runs all dockerfiles in this repo name: Pull Requests
name: checks
on: on:
# Triggers the workflow on push or pull request events but only for the main branch # Triggers the workflow on push or pull request events but only for the main branch
@ -16,7 +15,7 @@ env:
jobs: jobs:
matrix: matrix:
name: matrix name: Matrix
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
gomod: ${{ steps.gomod.outputs.matrix }} gomod: ${{ steps.gomod.outputs.matrix }}
@ -27,8 +26,8 @@ jobs:
matrix=$(find . -type f -name "go.mod" -print0 | xargs -0 -n1 dirname | sort --unique | jq -R -s -c 'split("\n")[:-1]') matrix=$(find . -type f -name "go.mod" -print0 | xargs -0 -n1 dirname | sort --unique | jq -R -s -c 'split("\n")[:-1]')
echo "${matrix}" echo "${matrix}"
echo "::set-output name=matrix::${matrix}" echo "::set-output name=matrix::${matrix}"
lint: check:
name: lint name: Check
needs: matrix needs: matrix
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@ -46,7 +45,7 @@ jobs:
with: with:
working-directory: ${{ matrix.gomod }} working-directory: ${{ matrix.gomod }}
test: test:
name: test name: Test
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -2,11 +2,6 @@
## === Tasks === ## === Tasks ===
.PHONY: act.push
## Run github push action
act.push:
@act
.PHONY: check .PHONY: check
## Run tests and linters ## Run tests and linters
check: test lint check: test lint