Skip to content

similar segments for quizzes #29

similar segments for quizzes

similar segments for quizzes #29

Workflow file for this run

name: Testing CI
on:
- push
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.1
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 19.9.0
cache: pnpm
- name: Install packages
run: pnpm install --no-frozen-lockfile
- name: Run relay
run: mkdir -p ./__generated__ && pnpm run relay
- name: Run eslint
run: pnpm run lint:eslint
- name: Run typescript
run: pnpm run lint:ts
style-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.1
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 19.9.0
cache: pnpm
- name: Install packages
run: pnpm install --no-frozen-lockfile
- name: Run prettier
run: pnpm run check-format
docker-build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Setup docker buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build docker container
uses: docker/build-push-action@v4
with:
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ghcr.io/it-rex-platform/frontend:latest
push: true
docker-build-keycloak-theme:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Setup docker buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build docker container
uses: docker/build-push-action@v4
with:
file: Dockerfile.keycloak
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ghcr.io/it-rex-platform/keycloak:latest
push: true