Merge pull request #13 from CommanderStorm/ci-warnings #64
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
# | |
# Copyright (c) 2023 Siddharth Chandrasekaran <sidcha.dev@gmail.com> | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
name: Build CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1.9.0 | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- run: cargo check | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1.9.0 | |
with: | |
toolchain: stable | |
- name: Cargo test | |
run: cargo test |