From 3bf0e7ddb9441cfb413d331d70cb32ef275cc575 Mon Sep 17 00:00:00 2001 From: DavePearce Date: Thu, 13 Jun 2024 12:46:12 +1200 Subject: [PATCH] Fix Github Actions --- .github/workflows/{lint.yml => build.yml} | 14 ++++++++++++-- .github/workflows/test.yml | 17 ----------------- 2 files changed, 12 insertions(+), 19 deletions(-) rename .github/workflows/{lint.yml => build.yml} (62%) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/build.yml similarity index 62% rename from .github/workflows/lint.yml rename to .github/workflows/build.yml index dd8a452..3194e5b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Lint +name: build on: push: @@ -7,7 +7,17 @@ on: branches: [ "main" ] jobs: - build: + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '>=1.20' + - run: make test + + lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 29d5f1a..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Tests - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: '>=1.20' - - run: make test