chore(deps): bump actions/checkout from 3 to 4 #200
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
--- | |
name: CI | |
# yamllint disable-line rule:truthy | |
on: | |
pull_request: | |
branches: | |
- '*' | |
push: | |
branches: | |
- master | |
concurrency: | |
group: build-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
unit-tests-master: | |
name: unit-tests | |
runs-on: ubuntu-20.04 | |
env: | |
DOKKU_VERSION: master | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.7.x' | |
- run: make setup | |
- run: sudo sysctl -w vm.max_map_count=262144 | |
- run: | | |
git fetch -q origin master | |
changed=$(git --no-pager diff --name-only $GITHUB_SHA..origin/master) | |
if [ $changed = "Dockerfile" ]; then | |
echo "Please run 'make generate' to update the image version in the README.md" | |
else | |
make generate | |
if ! git diff --quiet README.md; then | |
echo "Please run 'make generate'" | |
git status --short | |
git --no-pager diff README.md | |
exit 1 | |
fi | |
fi | |
- run: make test | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: tmp/test-results | |
path: test-results | |
unit-tests-0_19_0: | |
name: unit-tests-0.19.0 | |
runs-on: ubuntu-20.04 | |
env: | |
DOKKU_TAG: v0.19.0 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.7.x' | |
- run: make setup | |
- run: sudo sysctl -w vm.max_map_count=262144 | |
- run: | | |
git fetch -q origin master | |
changed=$(git --no-pager diff --name-only $GITHUB_SHA..origin/master) | |
if [ $changed = "Dockerfile" ]; then | |
echo "Please run 'make generate' to update the image version in the README.md" | |
else | |
make generate | |
if ! git diff --quiet README.md; then | |
echo "Please run 'make generate'" | |
git status --short | |
git --no-pager diff README.md | |
exit 1 | |
fi | |
fi | |
- run: make test | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: tmp/test-results | |
path: test-results |