chantools: recoverloopout
#372
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| pull_request: | |
| branches: | |
| - "*" | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| GO_VERSION: 1.23.9 | |
| jobs: | |
| ######################## | |
| # lint code | |
| ######################## | |
| lint: | |
| name: lint code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: git checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: create linter cache directory | |
| run: mkdir -p /tmp/go-lint-cache | |
| - name: linter cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| /tmp/go-lint-cache | |
| key: ${{ runner.os }}-go-${{ env.GO_VERSION }}-linter-${{ hashFiles('**/go.sum') }} | |
| - name: lint | |
| run: make lint | |
| ######################## | |
| # run unit tests | |
| ######################## | |
| unit-test: | |
| name: run unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: git checkout | |
| uses: actions/checkout@v5 | |
| - name: setup go ${{ env.GO_VERSION }} | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '${{ env.GO_VERSION }}' | |
| - name: Install chantools | |
| run: make install | |
| - name: run unit tests | |
| run: make unit | |
| ######################## | |
| # run integration tests | |
| ######################## | |
| integration-test: | |
| name: run integration tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: git checkout | |
| uses: actions/checkout@v5 | |
| - name: setup go ${{ env.GO_VERSION }} | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '${{ env.GO_VERSION }}' | |
| - name: Install chantools | |
| run: make install | |
| - name: run integration tests | |
| run: make itest |