Skip to content

Commit

Permalink
ci: Add GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
siketyan committed Jan 14, 2024
1 parent c88b416 commit d2cf0fe
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Checks

on:
push:
branches:
- main
pull_request: ~

jobs:
test:
name: Test
runs-on: ubuntu-22.04
strategy:
matrix:
tls:
- no-tls
- native-tls
- rustls-native-roots
- rustls-webpki-roots
- openssl
include:
- tls: no-tls
features: native-tls
- tls: rustls-native-roots
features: rustls
- tls: rustls-webpki-roots
features: rustls-webpki
- tls: openssl
features: openssl-tls
steps:
- uses: actions/checkout@v4

- name: Install latest stable
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
components: rustfmt,clippy

- name: Run rustfmt
run: cargo fmt --all --check

- name: Run clippy
uses: giraffate/clippy-action@v1
with:
reporter: 'github-pr-check'
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Run tests
run: cargo test --no-default-features --features '${{ matrix.features }}'

0 comments on commit d2cf0fe

Please sign in to comment.