split up main conversion function #232
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}/build/assets:/usr/local/src/build/assets ghcr.io/tmck-code/pokesay:latest ./build/scripts/build_assets.sh | |
- name: Build go binaries | |
run: docker run -v ${PWD}/build/bin:/usr/local/src/build/bin -v ${PWD}/build/assets:/usr/local/src/build/assets 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: go test | |