mirror of
https://github.com/numtide/treefmt.git
synced 2024-09-11 17:07:44 +03:00
ci: initial setup (#21)
This commit is contained in:
parent
79442b2b4c
commit
e76e621b63
6
.github/dependabot.yml
vendored
Normal file
6
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
23
.github/workflows/nix.yml
vendored
Normal file
23
.github/workflows/nix.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: Nix
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ubuntu-20.04 ]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: cachix/install-nix-action@v12
|
||||||
|
- uses: cachix/cachix-action@v8
|
||||||
|
with:
|
||||||
|
name: numtide
|
||||||
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
|
- run: nix-shell --pure --run "cargo build"
|
||||||
|
- run: nix-shell --pure --run "cargo test"
|
||||||
|
- run: nix-build -A defaultNix.packages.x86_64-linux
|
Loading…
Reference in New Issue
Block a user