diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml index 19a21ab..e3367be 100644 --- a/.gitea/workflows/action.yml +++ b/.gitea/workflows/action.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index c2b6eb8..081b6f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ # 2. Tag the image: `docker tag 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