Skip to content

Fix null !== undefined mistake in #220 and improve rendering slightly #234

Fix null !== undefined mistake in #220 and improve rendering slightly

Fix null !== undefined mistake in #220 and improve rendering slightly #234

Workflow file for this run

name: Linting and Tests
on:
push:
branches: ["main"]
pull_request:
jobs:
run-unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn
- run: yarn test
build:
name: Build JSONSchema, TypeScript and Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn
- run: yarn build
build-docker:
name: Build Docker Image
runs-on: ubuntu-latest
env:
# Only push if this is develop, otherwise we just want to build
# On a PR github.ref is the target branch, so don't push for that either
PUSH: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
steps:
- name: Check out
uses: actions/checkout@v2
- name: Login to GHCR
uses: docker/login-action@v3
if: ${{ env.PUSH == 'true' }}
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: ${{ env.PLATFORMS }}
push: ${{ env.PUSH }}
tags: |
ghcr.io/matrix-org/conference-bot:latest
ghcr.io/matrix-org/conference-bot:${{ github.sha }}