Merge pull request #80 from UltiRequiem/copilot/fix-ci-errors #148
This file contains hidden or 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, pull_request] | |
| jobs: | |
| build: | |
| name: Test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macOS-latest] | |
| fail-fast: true | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - name: Check Code Format | |
| if: matrix.os == 'ubuntu-latest' | |
| run: deno fmt --check | |
| - name: Lint | |
| if: matrix.os == 'ubuntu-latest' | |
| run: deno lint | |
| - name: Tests | |
| run: deno test --allow-net --allow-import --coverage=./cov | |
| - name: Generate Coverage | |
| if: matrix.os == 'ubuntu-latest' | |
| run: deno coverage --unstable --lcov ./cov > cov.lcov | |
| - name: Upload Coverage | |
| if: matrix.os == 'ubuntu-latest' | |
| uses: codecov/codecov-action@v2 | |
| with: | |
| files: cov.lcov |