Skip to content

Update nowsprinting/check-version-format-action action to v5.0.3 #319

Update nowsprinting/check-version-format-action action to v5.0.3

Update nowsprinting/check-version-format-action action to v5.0.3 #319

Workflow file for this run

name: Test
on:
push:
branches: ["main", "next"]
pull_request:
branches: ["main", "next"]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v7
- name: Setup Deno
uses: denoland/setup-deno@v2.0.4
with:
deno-version: v2.8.3
- name: Verify formatting
run: deno fmt --check
- name: Run linter
run: deno lint
- name: Check typescript
run: deno check main.ts
- name: Run tests
env:
DOPPLER_ENVIRONMENT: gitlab_ci
KEYS_VERSION: gitlab_ci
run: |
deno test --allow-read --coverage=coverage
deno coverage ./coverage --lcov --output=coverage.lcov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v7
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
flags: deno-server
test-rust-cli:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v7
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@67ef31d5b988238dd797d409d6f9574278e20537 # master
with:
toolchain: 1.89.0
components: rustfmt, clippy
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov
- name: Check Rust formatting
working-directory: ./cli
run: cargo fmt --all -- --check
- name: Lint with clippy
working-directory: ./cli
run: cargo clippy --all-targets -- -D warnings
- name: Build Rust CLI
working-directory: ./cli
run: cargo build
- name: Run Rust tests with coverage
working-directory: ./cli
run: cargo llvm-cov --lcov --output-path lcov.info
- name: Upload Rust coverage to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./cli/lcov.info
flags: rust-cli