geth v1.13.15 #128
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Test | |
on: | |
push: | |
branches: | |
- master | |
- "mamoru*" | |
- develop | |
pull_request: | |
branches: | |
- master | |
- "mamoru*" | |
- develop | |
jobs: | |
unit-test: | |
runs-on: self-hosted | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.20.x | |
- run: go version | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
# In order: | |
# * Module download cache | |
# * Build cache (Linux) | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Setup SSH for Private Repository Access | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Set Git to use SSH for GitHub | |
run: git config --global url."[email protected]:".insteadOf "https://github.com/" | |
- name: Set Git to use SSH for GitHub | |
run: git config --global url."ssh://[email protected]:".insteadOf "https://github.com/" | |
- name: Unit Test | |
env: | |
ANDROID_HOME: "" # Skip android test | |
run: | | |
go mod download | |
make test | |