Skip to content

feat(ci/cd): setup repository ci/cd with linting and testing #1

feat(ci/cd): setup repository ci/cd with linting and testing

feat(ci/cd): setup repository ci/cd with linting and testing #1

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches: [ main ]
jobs:
tests:
name: Test and codecov
run-on: ${{ matrix.os }}

Check failure on line 11 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 11, Col: 5): Unexpected value 'run-on' .github/workflows/tests.yml (Line: 10, Col: 5): Required property is missing: runs-on
strategy:
matrix:
os: [ ubuntu-latest ]
rust: [ stable ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
components: llvm-tools-preview
override: true
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate coverage report
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true