ci: change aws role #119
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: | |
pull_request: | |
types: [opened, reopened, synchronize, labeled] | |
push: | |
branches: | |
- main | |
jobs: | |
unit-test: | |
name: Start unit-test | |
if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ok-to-test') }} | |
runs-on: | |
- self-hosted | |
- small | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.PRIVATE_SSH_KEY }} | |
- name: make unit test | |
run: make ci.docker.run GOOS=linux GOARCH=amd64 RUN_WHAT="make test" |