staging #169

Merged
philipp merged 83 commits from staging into main 2024-01-19 07:43:06 +01:00
2 changed files with 9 additions and 26 deletions
Showing only changes of commit 62171d72fe - Show all commits

View File

@ -9,9 +9,10 @@ env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
jobs:
test-frontend:
test:
runs-on: ubuntu-latest
container: git.hofer.link/ruderverein-donau-linz/rowing-ci:latest
container:
image: git.hofer.link/ruderverein-donau-linz/rowing-ci:20240117
steps:
- uses: actions/checkout@v3
- name: Run Test DB Script
@ -20,10 +21,10 @@ jobs:
run: |
cargo build
cd frontend && npm install && npm run build
- name: Install dependencies
run: cd frontend && npm install
- name: Run Playwright tests
run: cd frontend && npx playwright test --workers 1
- name: Run Tests
run: cargo test --verbose
#- uses: actions/upload-artifact@v3
# if: always()
# with:
@ -31,29 +32,11 @@ jobs:
# path: frontend/playwright-report/
# retention-days: 30
test-backend:
runs-on: ubuntu-latest
container: git.hofer.link/ruderverein-donau-linz/rowing-ci:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run Test DB Script
run: ./test_db.sh
- name: Build
run: |
cargo build
cd frontend && npm install && npm run build
- name: Run Tests
run: cargo test --verbose
deploy-staging:
runs-on: ubuntu-latest
container: git.hofer.link/ruderverein-donau-linz/rowing-ci:latest
needs: [test_frontend, test_backend]
image: git.hofer.link/ruderverein-donau-linz/rowing-ci:20240117
needs: [test]
if: github.ref == 'refs/heads/staging'
steps:
- name: Checkout
@ -93,7 +76,7 @@ jobs:
deploy-main:
runs-on: ubuntu-latest
container: git.hofer.link/ruderverein-donau-linz/rowing-ci:latest
needs: [test_frontend, test_backend]
needs: [test]
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout

View File

@ -5,7 +5,7 @@
# 2. Tag the image: `docker tag <id> git.hofer.link/ruderverein-donau-linz/rowing-ci:latest`
# 3. Push the image: `docker push git.hofer.link/ruderverein-donau-linz/rowing-ci:latest`
FROM rust:latest
FROM rust:1.75.0
RUN apt-get update && apt-get install -y sqlite3