Skip to content

fix: fix two thread-safety issues #172

fix: fix two thread-safety issues

fix: fix two thread-safety issues #172

Workflow file for this run

---
name: checks
on:
push:
branches:
- main
pull_request:
env:
GO_SVR: 1.22.1
jobs:
commit:
name: "💬 Commit checks"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 2
path: code
- uses: actions/checkout@v3
with:
repository: "RHEnVision/changelog"
path: changelog
- run: pip3 install ./changelog
- run: |
python -m rhenvision_changelog commit-check || echo "::warning ::Commit message is not formatted correctly"
working-directory: code
tests:
name: "🏫 Go lint and tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_SVR }}
- name: Check that source has been prepared
run: |
./tools/prepare-source.sh
if [ -n "$(git status --porcelain)" ]; then
echo
echo "Please include these changes in your branch: "
git status -vv
exit "1"
else
exit "0"
fi
- uses: dominikh/staticcheck-action@v1
with:
version: "latest"
- run: |
make unit-tests run-examples