feat!: bumping versiong ranges, etc. #314
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Test | |
strategy: | |
fail-fast: false | |
matrix: | |
package: | |
- cli | |
- core | |
- integration | |
- lib | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup Deno | |
uses: denoland/setup-deno@v1 | |
- name: Setup Deno cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/deno | |
key: deno-${{ matrix.os }}-${{ hashFiles('./deno.lock') }} | |
restore-keys: deno-${{ matrix.os }} | |
- name: Setup Rust cache | |
if: matrix.package == 'core' || matrix.package == 'cli' | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo | |
./target | |
key: cargo-${{ matrix.os }}-${{ hashFiles('./**/Cargo.lock') }} | |
restore-keys: cargo-${{ matrix.os }} | |
- name: Build core/deno_lockfile | |
if: matrix.package == 'core' || matrix.package == 'cli' | |
run: | | |
cd core/deno_lockfile | |
deno task build | |
- name: Check format | |
if: matrix.os == 'ubuntu-latest' | |
run: deno fmt --check ${{ matrix.package }} | |
- name: Check lint | |
if: matrix.os == 'ubuntu-latest' | |
run: deno lint ${{ matrix.package }} | |
- name: Run tests | |
run: deno test -A --unstable-kv --coverage=./coverage_profile ${{ matrix.package }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: Create coverage report | |
run: deno coverage ./coverage_profile --lcov --output=./coverage.lcov | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
directory: ./ | |
file: ./coverage.lcov | |
token: ${{ secrets.CODECOV_TOKEN }} |