fix old var name #415
This file contains hidden or 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: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version-file: .node-version | |
| - run: pnpm --version | |
| - run: yarn --version # yarn is still used to build the bot SDK | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run test | |
| build: | |
| name: Build JSONSchema, TypeScript and Web | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version-file: .node-version | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm run 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 }} |