chore(ci): Update 'Release Please' to v4 #155
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: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
DENO_DIR: ./.cache | |
DENO_VER: "1.39.0" | |
jobs: | |
caching: | |
name: "Cache Updates" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Check out code" | |
uses: actions/checkout@v3 | |
- name: "Setup cache" | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.DENO_DIR }} | |
key: deno-${{ hashFiles('deno.lock' )}} | |
- name: "Setup Deno" | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: ${{ env.DENO_VER }} | |
- name: "Update cache" | |
run: | | |
deno cache --reload \ | |
deps/src/all.ts deps/test/all.ts | |
coding-checks: | |
name: "Coding Checks" | |
runs-on: ubuntu-latest | |
needs: | |
- caching | |
steps: | |
- name: "Check out code" | |
uses: actions/checkout@v3 | |
- name: "Setup cache" | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.DENO_DIR }} | |
key: deno-${{ hashFiles('deno.lock') }} | |
- name: "Setup Deno" | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: ${{ env.DENO_VER }} | |
- name: "Lint check" | |
run: deno lint | |
- name: "Format check" | |
run: deno fmt --check | |
unit-test: | |
name: "Testing" | |
runs-on: ubuntu-latest | |
needs: | |
- caching | |
steps: | |
- name: "Check out code" | |
uses: actions/checkout@v3 | |
- name: "Setup cache" | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.DENO_DIR }} | |
key: deno-${{ hashFiles('deno.lock') }} | |
- name: "Setup Deno" | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: ${{ env.DENO_VER }} | |
- name: "Run unit tests" | |
run: deno test --coverage | |
- name: "Generate coverage reports" | |
run: | | |
deno coverage \ | |
--exclude=test \ | |
--lcov --output=coverage/lcov \ | |
coverage | |
- name: "Report coverage" | |
uses: codecov/codecov-action@v3 | |
with: | |
files: coverage/lcov |