Skip to content

feat: Rewrite the backend in Rust #262

feat: Rewrite the backend in Rust

feat: Rewrite the backend in Rust #262

Workflow file for this run

name: "Test"
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
inputs:
env:
description: "Staging or production"
type: "string"
required: true
jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest] #macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v23
- uses: cachix/cachix-action@v12
with:
name: devenv
- name: Install devenv.sh
run: nix profile install tarball+https://install.devenv.sh/latest
shell: sh
- run: devenv ci
- name: Deploy staging
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest'
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
run: devenv shell deploy-${{ inputs.env || 'staging' }}