Skip to content

Commit

Permalink
let there be ci (#71)
Browse files Browse the repository at this point in the history
* let there be ci

* add linter

* run ef-tests

* use beefier runner

Co-authored-by: Elias Tazartes <66871571+Eikix@users.noreply.github.com>

---------

Co-authored-by: Elias Tazartes <66871571+Eikix@users.noreply.github.com>
  • Loading branch information
jobez and Eikix authored Sep 8, 2023
1 parent 9181fb1 commit 28b6c3d
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: linters

on:
workflow_call:

jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: check

fmt:
runs-on: ubuntu-latest-16-cores
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
components: rustfmt
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-features --all-targets -- -D warnings
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: test

on: [pull_request]

jobs:
test:
runs-on: ubuntu-latest-16-cores
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Setup rust env
uses: actions-rs/toolchain@v1
with:
profile: minimal
components: llvm-tools-preview
override: true
- name: Retrieve cached dependencies
uses: Swatinem/rust-cache@v2
# fetch ef tests
- name: fetch ef tests
run: make setup
# fetch dump
- name: fetch dump
run: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} make fetch-dump
- uses: taiki-e/install-action@nextest
# run tests
- name: run tests
run: make ef-tests

0 comments on commit 28b6c3d

Please sign in to comment.