Merge pull request #4 from skilld-labs/citesting #5
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: Commit Workflow | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
commands-ok: | |
name: Ensure main commands do not fail | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Commands | |
run: | | |
set -x | |
date | |
pwd | |
whoami | |
make deps build | |
ls -lah bin/launchr | |
mkdir -p .compose/build/ | |
touch .compose/build/test | |
./bin/launchr package | |
export file="$(ls -t .compose/artifacts/ | head -n 1)"; echo ${file} | |
tar -tf .compose/artifacts/${file} | |
go-linters: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Commands | |
run: | | |
set -x | |
date | |
pwd | |
whoami | |
make lint | |
go-tests: | |
name: Run Go tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Commands | |
run: | | |
set -x | |
date | |
pwd | |
whoami | |
make test | |