Skip to content

Commit

Permalink
Fix syntax error in GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Iajrdev committed May 15, 2024
1 parent a4c217a commit 259fac9
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
- name: Check out code
uses: actions/checkout@v2
- name: Build
run: go build -v ./...
run: go build -v .

fmt:
name: Format Check
runs-on: ubuntu-latest
needs: build
steps:
- name: Format Check code
- name: Check out code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v3
Expand All @@ -40,23 +40,23 @@ jobs:
exit 1
fi
test:
name: Test
runs-on: ubuntu-latest
needs: fmt
steps:
- name: Setting up Go
uses: actions/setup-go@v3
with:
go-version: '1.22.2'
- name: Check out code
uses: actions/checkout@v2
- name: Cache Go Modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: go test -v .
test:
name: Test
runs-on: ubuntu-latest
needs: fmt
steps:
- name: Setting up Go
uses: actions/setup-go@v3
with:
go-version: '1.22.2'
- name: Check out code
uses: actions/checkout@v2
- name: Cache Go Modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: go test -v .

0 comments on commit 259fac9

Please sign in to comment.