Quote project name when creating new Beefile #4
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 | |
on: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
bash: [ "5.1", "5.2" ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Install dependencies" | |
run: sudo apt-get update && sudo apt-get install -y --fix-missing shellcheck | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: "Run tests with bash-${{ matrix.bash }}" | |
run: TEST_BASH_VERSION=${{ matrix.bash }} test/run --docker | |
coverage: | |
needs: test | |
runs-on: ubuntu-latest | |
container: kcov/kcov | |
steps: | |
- name: "Install git" | |
run: apt-get update && apt-get install -y --fix-missing git | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: "Install dependencies" | |
run: apt-get update && apt-get install -y --fix-missing $(cat DEPENDENCIES.md) | |
- name: "Test coverage" | |
run: | | |
test/coverage | |
find coverage -type f -name "*.*" -exec sed -i 's/\/__w\/bee\/bee\///g' {} \; | |
- name: "Upload coverage report" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ github.event.repository.name }} coverage report | |
path: coverage | |
coveralls: | |
needs: coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: "Download coverage report" | |
uses: actions/download-artifact@v4 | |
with: | |
name: ${{ github.event.repository.name }} coverage report | |
path: coverage | |
- name: "Generate lcov" | |
run: | | |
dotnet tool install -g dotnet-reportgenerator-globaltool | |
reportgenerator -reports:"coverage/**/cobertura.xml" -targetdir:"coverage" -reporttypes:"lcov" | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: "coverage/lcov.info" |