Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
feat: overlays instead of single environment (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
hseeberger authored Oct 19, 2023
1 parent 05aba53 commit 4dc433d
Show file tree
Hide file tree
Showing 15 changed files with 565 additions and 102 deletions.
53 changes: 27 additions & 26 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,43 +1,44 @@
name: CI
name: ci

on:
push:
branches: [main]
branches:
- main
tags-ignore:
- v*

pull_request:
branches: [main]
branches:
- main

jobs:
test:
ci:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3

# Nightly needed for `cargo +nightly fmt` below
- name: Install Rust toolchain
run: |
rustup update
rustup toolchain install nightly
rustup toolchain install nightly --profile minimal
rustup component add rustfmt --toolchain nightly
rustup component add clippy --toolchain nightly
# rustup component add clippy --toolchain nightly
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
- name: Install just
uses: taiki-e/install-action@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Check code format (cargo fmt)
run: cargo +nightly fmt --check

- name: Lint (cargo clippy)
run: cargo clippy --no-deps -- -D warnings

- name: Test (cargo test)
run: cargo test
tool: just

- name: Set up Rust cache
uses: Swatinem/rust-cache@v2

- name: Check code format
run: just fmt_check

- name: Run linter
run: just lint

- name: Run tests
run: just test
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/target
/Cargo.lock
target
Loading

0 comments on commit 4dc433d

Please sign in to comment.