Feat/sqlx refactor #550
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 | |
schedule: | |
- cron: "24 8 * * 0,3,5" | |
env: | |
DENO_VERSION: vx.x.x | |
jobs: | |
check: | |
name: Check format and lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
- name: Install deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: ${{env.DENO_VERSION}} | |
- name: Check | |
run: deno task check | |
tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
- name: Install deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: ${{env.DENO_VERSION}} | |
- name: Run unit tests | |
run: deno task test | |
- name: Generate lcov | |
run: deno coverage --unstable --lcov coverage > coverage.lcov | |
- name: Upload coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
files: coverage.lcov | |
flags: tests-stable | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: ${{env.DENO_VERSION}} | |
- name: Publish (dry run) | |
run: deno publish --dry-run |