Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/actions/setup-monorepo/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Setup Monorepo
description: Prepare and install everything for the monorepo

inputs:
github-token:
description: The GitHub token

toolchain:
description: Toolchain name to use
default: nightly

runs:
using: composite
steps:
- name: 🏗 Setup Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ inputs.toolchain }}
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
workflow_dispatch:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ci:
name: CI
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- name: 🏗 Setup repository
uses: actions/checkout@v3

- name: 🏗 Setup monorepo
uses: ./.github/actions/setup-monorepo
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: 📦 Build
id: build
run: cargo build

- name: 🦺 Test
id: test
run: cargo test