Adjust bibliography search #3659
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: CI | |
on: | |
push: | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16' | |
- name: Install | |
id: install | |
run: yarn install --dev --frozen-lockfile | |
- name: Lint | |
if: success() || steps.install.outcome == 'success' | |
run: yarn lint | |
- name: Compile | |
if: success() || steps.install.outcome == 'success' | |
run: yarn tsc | |
- name: Unit Tests | |
id: unit_tests | |
if: success() || steps.install.outcome == 'success' | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageCommand: yarn test --coverage --forceExit --detectOpenHandles | |
- uses: edge/[email protected] | |
if: failure() | |
with: | |
channel: '#continuous-integration' | |
status: ${{ job.status }} | |
success_text: 'eBL frontend build #${env.GITHUB_RUN_NUMBER} build completed successfully.' | |
failure_text: 'eBL frontend build #${env.GITHUB_RUN_NUMBER} failed.' | |
cancelled_text: 'eBL frontend build #${env.GITHUB_RUN_NUMBER} build was cancelled.' | |
fields: | | |
[{"title": "Repository", "value": "${env.GITHUB_REPOSITORY}", "short": true }, | |
{"title": "Ref", "value": "${env.GITHUB_REF}", "short": true }, | |
{"title": "Action URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}"}] | |
docker: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
needs: [test] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: docker/setup-buildx-action@v1 | |
- uses: docker/login-action@v1 | |
with: | |
registry: www.ebl.lmu.de | |
username: ${{ secrets.EBL_REGISTRY_USERNAME }} | |
password: ${{ secrets.EBL_REGISTRY_PASSWORD }} | |
- id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
build-args: | | |
REACT_APP_AUTH0_DOMAIN=auth.ebl.lmu.de | |
REACT_APP_CORRECTIONS_EMAIL=ebl-support+corrections@culture.lmu.de | |
REACT_APP_AUTH0_CLIENT_ID=${{ secrets.REACT_APP_AUTH0_CLIENT_ID }} | |
REACT_APP_AUTH0_AUDIENCE=${{ secrets.REACT_APP_AUTH0_AUDIENCE }} | |
REACT_APP_DICTIONARY_API_URL=/api | |
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_SENTRY_DSN }} | |
REACT_APP_GA_TRACKING_ID=${{ secrets.REACT_APP_GA_TRACKING_ID }} | |
context: . | |
file: ./Dockerfile | |
push: true | |
tags: | | |
www.ebl.lmu.de/ebl-frontend:master | |
${{format('www.ebl.lmu.de/ebl-frontend:master.{0}', github.run_number)}} | |
- uses: edge/[email protected] | |
if: always() | |
with: | |
channel: '#continuous-integration' | |
status: ${{ job.status }} | |
success_text: 'Building eBL frontend image #${env.GITHUB_RUN_NUMBER} completed successfully.' | |
failure_text: 'Building eBL frontend image #${env.GITHUB_RUN_NUMBER} failed.' | |
cancelled_text: 'Building eBL frontend image #${env.GITHUB_RUN_NUMBER} was cancelled.' | |
fields: | | |
[{"title": "Repository", "value": "${env.GITHUB_REPOSITORY}", "short": true }, | |
{"title": "Ref", "value": "${env.GITHUB_REF}", "short": true }, | |
{"title": "Action URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}"}] | |
docker-test: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: docker/setup-buildx-action@v1 | |
- uses: docker/login-action@v1 | |
with: | |
registry: www.ebl.lmu.de | |
username: ${{ secrets.EBL_REGISTRY_USERNAME }} | |
password: ${{ secrets.EBL_REGISTRY_PASSWORD }} | |
- id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
build-args: | | |
REACT_APP_AUTH0_DOMAIN=auth.ebl.lmu.de | |
REACT_APP_CORRECTIONS_EMAIL=ebl-support+corrections@culture.lmu.de | |
REACT_APP_AUTH0_CLIENT_ID=${{ secrets.REACT_APP_AUTH0_CLIENT_ID }} | |
REACT_APP_AUTH0_AUDIENCE=${{ secrets.REACT_APP_AUTH0_AUDIENCE }} | |
REACT_APP_DICTIONARY_API_URL=/test/api | |
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_SENTRY_DSN }} | |
REACT_APP_GA_TRACKING_ID=${{ secrets.REACT_APP_GA_TRACKING_ID }} | |
context: . | |
file: ./Dockerfile | |
push: true | |
tags: | | |
www.ebl.lmu.de/ebl-frontend:test | |
- uses: edge/[email protected] | |
if: always() | |
with: | |
channel: '#continuous-integration' | |
status: ${{ job.status }} | |
failure_text: 'Building eBL frontend test image #${env.GITHUB_RUN_NUMBER} failed.' | |
fields: | | |
[{"title": "Repository", "value": "${env.GITHUB_REPOSITORY}", "short": true }, | |
{"title": "Ref", "value": "${env.GITHUB_REF}", "short": true }, | |
{"title": "Action URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}"}] |