diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d80f61ac..9bddcce6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,10 +11,15 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout codebase + uses: actions/checkout@v3 + with: + path: code + - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version-file: code/go.mod - name: Set variables run: | @@ -22,11 +27,6 @@ jobs: echo "TAG_NAME=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV shell: bash - - name: Checkout codebase - uses: actions/checkout@v3 - with: - path: code - - name: Build dlc.dat file run: | cd code || exit 1 diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index e764c37d..08411d16 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -9,10 +9,15 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout codebase + uses: actions/checkout@v3 + with: + path: code + - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version-file: code/go.mod - name: Set variables run: | @@ -20,11 +25,6 @@ jobs: echo "TAG_NAME=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV shell: bash - - name: Checkout codebase - uses: actions/checkout@v3 - with: - path: code - - name: Build dlc.dat file run: | cd code || exit 1