156 as admin be able to addremove a player tofrom a timeslot #192
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: Build and Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- run: corepack enable | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "8.x" | |
- run: pnpm i | |
- name: Build server | |
run: pnpm server:build | |
- name: Run Integration Tests | |
run: pnpm test:integration | |
- name: Lint client | |
run: pnpm lint | |
working-directory: ./src/client | |
- name: Build client | |
run: pnpm client:build | |
- name: Build docker | |
run: pnpm docker:build | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
if: github.ref == 'refs/heads/main' | |
- name: Push docker | |
id: push_docker | |
run: pnpm docker:push | |
if: github.ref == 'refs/heads/main' | |
- name: Push Watchtower | |
id: push_watchtower | |
run: 'curl -H "Authorization: Bearer ${{ secrets.WATCHTOWER_TOKEN }}" "${{ secrets.WATCHTOWER_URL }}"' | |
if: github.ref == 'refs/heads/main' |