From 2d1dff28063938c7cf7457adc7dd342c44c47a82 Mon Sep 17 00:00:00 2001 From: gabe Date: Sun, 15 Oct 2023 17:51:04 -0700 Subject: [PATCH] Better --- .github/workflows/ci.yml | 11 ++++++----- .github/workflows/codeql-analysis.yml | 3 +++ .github/workflows/golangci-lint.yml | 3 +++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e11a51b8..667cd69f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,9 @@ on: jobs: vulnerability-scan: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./impl steps: - uses: actions/checkout@v3 @@ -23,14 +26,15 @@ jobs: go-version: 1.21.3 - name: Install Mage - working-directory: ./impl run: go install github.com/magefile/mage - name: Check Vulnerabilities - working-directory: ./impl run: mage -v vuln build: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./impl steps: - uses: actions/checkout@v3 @@ -40,13 +44,10 @@ jobs: go-version: 1.21.3 - name: Install Mage - working-directory: ./impl run: go install github.com/magefile/mage - name: Build - working-directory: ./impl run: mage build - name: Test - working-directory: ./impl run: mage citest \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index cf011ea4..7dcb290e 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,6 +13,9 @@ jobs: analyze: name: Analyze runs-on: ubuntu-latest + defaults: + run: + working-directory: ./impl permissions: actions: read contents: read diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 04ab734d..0e6a1499 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -13,6 +13,9 @@ jobs: golangci: name: lint runs-on: ubuntu-latest + defaults: + run: + working-directory: ./impl steps: - uses: actions/setup-go@v3 with: