Update nitrite-release.yml #55
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 Nitrite | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "README.md" | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- "README.md" | |
jobs: | |
test_linux: | |
name: Build Nitrite on Ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Install lcov | |
run: sudo apt-get update -qq -y && sudo apt-get install lcov | |
- name: Setup Build System | |
shell: bash | |
run: | | |
chmod +x ./.github/workflows/scripts/install-tools.sh | |
./.github/workflows/scripts/install-tools.sh | |
- name: Build Nitrite | |
run: melos run test | |
- name: Upload coverage | |
if: github.ref == 'refs/heads/main' | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: unittests | |
name: codecov-umbrella | |
files: ./coverage/filtered.lcov.info | |
test_macos: | |
name: Build Nitrite on MacOS | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Setup Build System | |
shell: bash | |
run: ./.github/workflows/scripts/install-tools.sh | |
- name: Build Nitrite | |
run: melos run test:without-coverage | |
test_windows: | |
name: Build Nitrite on Windows | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Setup Build System | |
shell: cmd | |
run: .\.github\workflows\scripts\install-tools.bat | |
- name: Build Nitrite | |
shell: cmd | |
run: melos run test:without-coverage |