Bump actions/checkout from 2 to 4 #96
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: 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 }} |