Fiddle: update deployment to point to new box #415
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: Build | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
build-package: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_IMAGE: package | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
load: true | |
cache-from: type=gha,scope=app-all | |
cache-to: type=gha,mode=max,scope=app-all | |
- name: Build testable docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
load: true | |
cache-from: type=gha,scope=app | |
cache-to: type=gha,mode=max,scope=app | |
tags: ${{ env.DOCKER_IMAGE }} | |
target: build | |
- name: Run linting | |
run: | | |
docker run --name linting $DOCKER_IMAGE npm run lint -- --output-file linting-results.json --output-file-format annotations | |
docker cp linting:/app/linting-results.json ./linting-results.json | |
- name: Upload linting results | |
uses: kibalabs/github-action-create-annotations@main | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
json-file-path: linting-results.json | |
check-name: lint-package | |
fail-on-error: false | |
- name: Run typing | |
run: | | |
docker run --name typing $DOCKER_IMAGE npm run type-check -- --output-file typing-results.json --output-file-format annotations | |
docker cp typing:/app/typing-results.json ./typing-results.json | |
- name: Upload typing results | |
uses: kibalabs/github-action-create-annotations@main | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
json-file-path: typing-results.json | |
check-name: type-package | |
fail-on-error: false | |
build-console: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_IMAGE: package | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build console docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
cache-from: type=gha,scope=console | |
cache-to: type=gha,mode=max,scope=console | |
target: console | |
build-builder-api: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_IMAGE: package | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build builder-api docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
cache-from: type=gha,scope=builder-api | |
cache-to: type=gha,mode=max,scope=builder-api | |
target: builder-api |