Avoid executing remote code documentation #266
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: Build | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install sharutils | |
run: sudo apt-get install sharutils | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- uses: actions/checkout@v2 | |
- name: Unit Tests | |
run: cd src && python3 -m unittest discover -s test/unit | |
- name: Integration Tests | |
run: cd src && python3 -m unittest discover -s test/integration | |
- name: System Quick Tests | |
run: cd src && python3 -m unittest discover -s test/system/quick | |
- name: System Slow Tests | |
run: cd src && python3 -m unittest discover -s test/system/slow | |
- name: Build | |
run: ZIP_FILE="$(pwd)/dont_download.zip" ./src/build.sh > dont_download.sh | |
- name: Release | |
id: release | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "The CI/CD Bot" | |
./.github/release.sh | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |