Fiddle: converted package into es-module #83
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: ui-react-build | |
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=package | |
cache-to: type=gha,mode=max,scope=package | |
tags: ${{ env.DOCKER_IMAGE }} | |
- name: Run lint-check | |
run: | | |
docker run --name lint-check $DOCKER_IMAGE make lint-check-ci | |
docker cp lint-check:/app/lint-check-results.json ./src/lint-check-results.json | |
- name: Upload lint results | |
uses: kibalabs/github-action-create-annotations@main | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
json-file-path: ./src/lint-check-results.json | |
check-name: lint-check | |
fail-on-error: false | |
path-prefix: ./src/ | |
- name: Run type-check | |
run: | | |
docker run --name type-check $DOCKER_IMAGE make type-check-ci | |
docker cp type-check:/app/type-check-results.json ./src/type-check-results.json | |
- name: Upload type-check results | |
uses: kibalabs/github-action-create-annotations@main | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
json-file-path: ./src/type-check-results.json | |
check-name: type-check | |
fail-on-error: false | |
path-prefix: ./src/ |