From d767549ee7d539f241b7e57c9374e4a39d908146 Mon Sep 17 00:00:00 2001 From: ICHINOSE Shogo Date: Thu, 7 Mar 2024 03:06:08 +0900 Subject: [PATCH] checkout first on GitHub Actions --- .github/workflows/build.yml | 6 +++--- .github/workflows/test.yml | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f7a6d5..035e7e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,14 +19,14 @@ jobs: - arm64 runs-on: ubuntu-latest steps: + - name: checkout + uses: actions/checkout@v4 + - name: setup Go uses: actions/setup-go@v5 with: go-version: "1.22" - - name: checkout - uses: actions/checkout@v4 - - name: build-${{ matrix.goos }}-${{ matrix.goarch }} run: | GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6183f32..7286f53 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,14 +28,14 @@ jobs: - "1.17" runs-on: ${{ matrix.os }} steps: + - name: checkout + uses: actions/checkout@v4 + - name: setup Go uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - - name: checkout - uses: actions/checkout@v4 - - name: test run: | go test --race ./... @@ -79,14 +79,14 @@ jobs: lint: runs-on: ubuntu-latest steps: + - name: checkout + uses: actions/checkout@v4 + - name: setup Go uses: actions/setup-go@v5 with: go-version: "1.22" - - name: checkout - uses: actions/checkout@v4 - - name: gofmt run: | test -z "$(gofmt -s -d . | tee /dev/stderr)"