e2e #6881
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: e2e | |
on: | |
schedule: | |
- cron: 0 * * * * # every hour | |
jobs: | |
saas-template: | |
name: Create saas starter template | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly | |
- run: | | |
cargo install loco-cli | |
ALLOW_IN_GIT_REPO=true loco new --template saas --name saas --db sqlite --bg async --assets serverside | |
- run: | | |
cargo build | |
working-directory: ./saas | |
rest-api: | |
name: Create stateless starter template | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly | |
- run: | | |
cargo install loco-cli | |
ALLOW_IN_GIT_REPO=true loco new --template rest-api --name restapi --db sqlite --bg async | |
- run: | | |
cargo build | |
working-directory: ./restapi | |
lightweight-service: | |
name: Create stateless starter template | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly | |
- run: | | |
cargo install loco-cli | |
ALLOW_IN_GIT_REPO=true loco new --template lightweight-service --name lightweight --db sqlite --bg async | |
- run: | | |
cargo build | |
working-directory: ./lightweight |