Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

refactor: Allow auth by providing an Bearer-Token #11

refactor: Allow auth by providing an Bearer-Token

refactor: Allow auth by providing an Bearer-Token #11

Workflow file for this run

name: Run Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
IMAGE_NAME: ghcr.io/budgetbuddyde/backend
IMAGE_TAG: ${{ github.ref_name }}
DOCKER_USER: ${{ secrets.DOCKER_USER }}
PAT: ${{ secrets.NPM_TOKEN }}
jobs:
test:
name: Test Backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17.0
uses: actions/setup-java@v2
with:
java-version: '17.0'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run tests
run: ./gradlew test
- name: Upload report
uses: actions/upload-artifact@v2
with:
name: Test Report
path: ./build/reports/tests/test/
retention-days: 30