Skip to content

Commit

Permalink
DRY attempt #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jayofdoom committed Jun 1, 2022
1 parent 5e2da69 commit 2aba452
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 21 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/go-setup.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/go-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Setup go environment for tests"
description: "Sets up go environment and installs deps for go testing of armada"

runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: true
- name: Setup dependencies
run: make download
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
matrix:
go: [ '1.16', '1.18' ]
steps:
- uses: ./.github/workflows/go-setup.yml
- uses: ./.github/workflows/go-setup

- name: make code-checks
run: make code-checks
Expand Down

0 comments on commit 2aba452

Please sign in to comment.