From 1cb26c0626dbf4174e5deff373e7428fd2444b23 Mon Sep 17 00:00:00 2001 From: Viktor Alenkov Date: Wed, 19 Jul 2023 10:18:40 +0300 Subject: [PATCH] Split GitHub jobs --- .github/workflows/test-asdf.yml | 20 +++++++++++++++++++ .../workflows/{test.yml => test-matrix.yml} | 14 +------------ 2 files changed, 21 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/test-asdf.yml rename .github/workflows/{test.yml => test-matrix.yml} (60%) diff --git a/.github/workflows/test-asdf.yml b/.github/workflows/test-asdf.yml new file mode 100644 index 0000000..c61b75e --- /dev/null +++ b/.github/workflows/test-asdf.yml @@ -0,0 +1,20 @@ +name: Go + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test-asdf: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install asdf & tools + uses: asdf-vm/actions/install@v2 + + - name: Tests + run: go test -v ./... diff --git a/.github/workflows/test.yml b/.github/workflows/test-matrix.yml similarity index 60% rename from .github/workflows/test.yml rename to .github/workflows/test-matrix.yml index 58291d7..22bd89b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test-matrix.yml @@ -16,7 +16,7 @@ jobs: go: ["1.19.x", "1.20.x"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Go uses: actions/setup-go@v4 @@ -26,15 +26,3 @@ jobs: - name: Test run: go test -v -race ./... - - test-asdf: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Install asdf & tools - uses: asdf-vm/actions/install@v2 - - - name: Tests - run: go test -v ./...