Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
225 changes: 225 additions & 0 deletions .github/workflows/CLI-ActixPostgres-CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
name: CLI Continuous Integration (Compilation tests for variations of Actix + Postgres)
on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- "**.rs"
- "Cargo.lock"
- "Cargo.toml"
pull_request:
paths:
- "**.rs"
- "Cargo.lock"
- "Cargo.toml"
env:
CARGO_TERM_COLOR: always

concurrency:
group: CI-AP-${{ github.ref }}
cancel-in-progress: true

jobs:
# naming convention is: [backend]-[database]-[plugins]
Actix-Postgres-None:
name: Actix w/ Postgres and no plugins
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: rui314/setup-mold@v1
- uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/cache@v3.2.5
with:
path: |
**/.cargo/.build
**/target
key: ${{ runner.os }}-cargo-cli-AP-${{ hashFiles('**/Cargo.lock') }}
- run: git config --global user.name test
- run: git config --global user.email example@email.com
- uses: actions-rs/cargo@v1.0.3
with:
command: run
args: --bin create-rust-app -- create -c -d postgres -b actix-web test-project
- uses: actions-rs/cargo@v1.0.3
with:
command: build
args: --manifest-path=test-project/Cargo.toml

Actix-Postgres-All:
needs: [Actix-Postgres-None]
name: Actix w/ Postgres and all valid plugins
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: rui314/setup-mold@v1
- uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/cache@v3.2.5
with:
path: |
**/.cargo/.build
**/target
key: ${{ runner.os }}-cargo-cli-AP-${{ hashFiles('**/Cargo.lock') }}
- run: git config --global user.name test
- run: git config --global user.email example@email.com
- uses: actions-rs/cargo@v1.0.3
with:
command: run
args: --bin create-rust-app -- create -c -d postgres -b actix-web --plugins=auth,container,graphql,storage,utoipa test-project
- uses: actions-rs/cargo@v1.0.3
with:
command: build
args: --manifest-path=test-project/Cargo.toml

Actix-Postgres-Container:
needs: [Actix-Postgres-None]
name: Actix w/ Postgres and the container plugin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: rui314/setup-mold@v1
- uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/cache@v3.2.5
with:
path: |
**/.cargo/.build
**/target
key: ${{ runner.os }}-cargo-cli-AP-${{ hashFiles('**/Cargo.lock') }}
- run: git config --global user.name test
- run: git config --global user.email example@email.com
- uses: actions-rs/cargo@v1.0.3
with:
command: run
args: --bin create-rust-app -- create -c -d postgres -b actix-web --plugins=container test-project
- uses: actions-rs/cargo@v1.0.3
with:
command: build
args: --manifest-path=test-project/Cargo.toml

Actix-Postgres-Auth:
needs: [Actix-Postgres-None]
name: Actix w/ Postgres and the auth plugin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: rui314/setup-mold@v1
- uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/cache@v3.2.5
with:
path: |
**/.cargo/.build
**/target
key: ${{ runner.os }}-cargo-cli-AP-${{ hashFiles('**/Cargo.lock') }}
- run: git config --global user.name test
- run: git config --global user.email example@email.com
- uses: actions-rs/cargo@v1.0.3
with:
command: run
args: --bin create-rust-app -- create -c -d postgres -b actix-web --plugins=auth test-project
- uses: actions-rs/cargo@v1.0.3
with:
command: build
args: --manifest-path=test-project/Cargo.toml

Actix-Postgres-Storage:
needs: [Actix-Postgres-None]
name: Actix w/ Postgres and the storage plugin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: rui314/setup-mold@v1
- uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/cache@v3.2.5
with:
path: |
**/.cargo/.build
**/target
key: ${{ runner.os }}-cargo-cli-AP-${{ hashFiles('**/Cargo.lock') }}
- run: git config --global user.name test
- run: git config --global user.email example@email.com
- uses: actions-rs/cargo@v1.0.3
with:
command: run
args: --bin create-rust-app -- create -c -d postgres -b actix-web --plugins=storage test-project
- uses: actions-rs/cargo@v1.0.3
with:
command: build
args: --manifest-path=test-project/Cargo.toml

Actix-Postgres-GraphQL:
needs: [Actix-Postgres-None]
name: Actix w/ Postgres and the graphql plugin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: rui314/setup-mold@v1
- uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/cache@v3.2.5
with:
path: |
**/.cargo/.build
**/target
key: ${{ runner.os }}-cargo-cli-AP-${{ hashFiles('**/Cargo.lock') }}
- run: git config --global user.name test
- run: git config --global user.email example@email.com
- uses: actions-rs/cargo@v1.0.3
with:
command: run
args: --bin create-rust-app -- create -c -d postgres -b actix-web --plugins=graphql,auth test-project
- uses: actions-rs/cargo@v1.0.3
with:
command: build
args: --manifest-path=test-project/Cargo.toml

Actix-Postgres-Utoipa:
needs: [Actix-Postgres-None]
name: Actix w/ Postgres and the utoipa plugin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: rui314/setup-mold@v1
- uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/cache@v3.2.5
with:
path: |
**/.cargo/.build
**/target
key: ${{ runner.os }}-cargo-cli-AP-${{ hashFiles('**/Cargo.lock') }}
- run: git config --global user.name test
- run: git config --global user.email example@email.com
- uses: actions-rs/cargo@v1.0.3
with:
command: run
args: --bin create-rust-app -- create -c -d postgres -b actix-web --plugins=auth,utoipa test-project
- uses: actions-rs/cargo@v1.0.3
with:
command: build
args: --manifest-path=test-project/Cargo.toml
Loading