hotfix to allow changing the config file location #5
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: Release QA | |
on: | |
push: | |
branches: | |
- release/v* | |
env: | |
VERSION: ${{ github.ref_name }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install rust | |
uses: dtolnay/rust-toolchain@nightly | |
- name: Cache rust | |
uses: Swatinem/rust-cache@v2 | |
- name: Build | |
run: cargo build | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 | |
- name: Build image | |
uses: docker/build-push-action@v5 | |
with: | |
push: false | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/ | |
- name: Install mongod (test dependency) | |
run: | | |
sudo apt-get install gnupg curl | |
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \ | |
sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \ | |
--dearmor | |
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list | |
sudo apt-get update | |
sudo apt-get install -y mongodb-org-server | |
- name: Install rust | |
uses: dtolnay/rust-toolchain@nightly | |
- name: Cache rust | |
uses: Swatinem/rust-cache@v2 | |
- name: Build | |
run: cargo build | |
- name: Run tests | |
run: cargo test |