feat: Rewrite the backend in Rust #261
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }} |