Skip to content

change workflow to lint first #3

change workflow to lint first

change workflow to lint first #3

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
paths-ignore:
- README.md
pull_request:
branches: ["main"]
paths-ignore:
- README.md
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run clippy lint checks
run: cargo clippy -- -D warnings
- name: Run documentation lint checks
run: cargo doc --no-deps --document-private-items
build:
needs: lint
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run tests
env:
SHYFT_API_KEY: ${{ secrets.SHYFT_API_KEY }}
CIELO_API_KEY: ${{ secrets.CIELO_API_KEY }}
run: cargo test --verbose