diff --git a/.github/workflows/mamoru-build-test.yml b/.github/workflows/mamoru-build-test.yml index e001bac1dce0..8b95ad8f34b7 100644 --- a/.github/workflows/mamoru-build-test.yml +++ b/.github/workflows/mamoru-build-test.yml @@ -22,10 +22,15 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 1.21.x + + - name: Setup SSH for Private Repository Access + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: actions/cache@v3 with: @@ -39,18 +44,13 @@ jobs: restore-keys: | ${{ runner.os }}-go- - - name: Setup SSH for Private Repository Access - uses: webfactory/ssh-agent@v0.9.0 - with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Set Git to use SSH for GitHub run: git config --global url."git@github.com:".insteadOf "https://github.com/" - name: Test Build run: | - ls ~/.ssh - go mod download make geth diff --git a/.github/workflows/mamoru-unit-test.yml b/.github/workflows/mamoru-unit-test.yml index 4d7327ca4199..c8b61bf6e4d3 100644 --- a/.github/workflows/mamoru-unit-test.yml +++ b/.github/workflows/mamoru-unit-test.yml @@ -22,11 +22,16 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: 1.21.x - run: go version + - name: Setup SSH for Private Repository Access + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: actions/cache@v3 with: @@ -40,10 +45,6 @@ jobs: restore-keys: | ${{ runner.os }}-go- - - name: Setup SSH for Private Repository Access - uses: webfactory/ssh-agent@v0.9.0 - with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Set Git to use SSH for GitHub run: git config --global url."git@github.com:".insteadOf "https://github.com/"