Skip to content

Merge pull request #6 from approvals/dependabot/github_actions/action… #98

Merge pull request #6 from approvals/dependabot/github_actions/action…

Merge pull request #6 from approvals/dependabot/github_actions/action… #98

name: Build and test
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Dart SDK
uses: dart-lang/[email protected]
with:
sdk: stable
- name: Setup Visual Studio Code
run: |
if [[ "${{ runner.os }}" == "Linux" ]]; then
sudo snap install code --classic
elif [[ "${{ runner.os }}" == "macOS" ]]; then
brew install --cask visual-studio-code
elif [[ "${{ runner.os }}" == "Windows" ]]; then
choco install vscode
fi
shell: bash
- name: Build and test
run: |
./bash/build_and_test.sh
shell: bash
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}