print the ids #237
Workflow file for this run
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
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Pull image from ghcr.io | |
run: docker pull ghcr.io/tmck-code/pokesay:latest | |
- name: Build go binary assets | |
run: docker run -v ${PWD}:/usr/local/src ghcr.io/tmck-code/pokesay:latest ./build/scripts/build_assets.sh | |
- name: Build go binaries | |
run: docker run -v ${PWD}:/usr/local/src ghcr.io/tmck-code/pokesay:latest ./build/scripts/build.sh | |
- name: Check build | |
run: ls -alh build/bin | |
- name: Test build | |
run: echo w | ./build/bin/pokesay-linux-amd64 | |
- name: Run unit tests | |
run: docker run -v ${PWD}:/usr/local/src ghcr.io/tmck-code/pokesay:latest go test -v ./test/ | |