From c3b742c2a848199e76a01485d01423a6add4c508 Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Wed, 19 Apr 2023 00:40:47 +0800 Subject: [PATCH] move set up go after checkout --- .github/workflows/release.yml | 6 +++--- .github/workflows/tunasync.yml | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b1e93d..52338fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,15 +12,15 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + - name: Set up Go 1.16 uses: actions/setup-go@v4 with: go-version: 1.16 id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: Build run: | for i in linux-amd64 linux-arm64; do diff --git a/.github/workflows/tunasync.yml b/.github/workflows/tunasync.yml index aae07ac..023362c 100644 --- a/.github/workflows/tunasync.yml +++ b/.github/workflows/tunasync.yml @@ -9,15 +9,15 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + - name: Set up Go 1.16 uses: actions/setup-go@v4 with: go-version: 1.16 id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: Get dependencies run: | go get -v -t -d ./cmd/tunasync @@ -50,15 +50,15 @@ jobs: sudo apt-get install -y cgroup-tools docker pull alpine:3.8 + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + - name: Set up Go 1.16 uses: actions/setup-go@v4 with: go-version: 1.16 id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: Run Unit tests. run: | go install github.com/wadey/gocovmerge@latest