Ignore invalid MXIDs in permissions command (#229) #270
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: 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 }} |