Skip to content

Initial Commit

Initial Commit #1

Workflow file for this run

name: ci
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup FluentCI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: rust
args: setup
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
run: |
fluentci run --wasm postgres start
cargo install sqlx-cli
cargo sqlx prepare
sqlx migrate run
cargo test
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NIX_CONFIG: "extra-access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}"
POSTGRES_USER: postgres
POSTGRES_DB: demo
DATABASE_URL: postgres://postgres@localhost/demo
- name: Run build
run: |
fluentci run --wasm rust build