Merge pull request #299 from okp4/dependabot/npm_and_yarn/typescript-β¦ #705
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: | |
workflow_call: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-yarn: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Setup node environment (for building) | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.18 | |
cache: yarn | |
- name: Fetch dependencies | |
run: | | |
yarn --frozen-lockfile | |
- name: Generate code | |
run: | | |
yarn codegen | |
- name: Build project | |
run: | | |
yarn build | |
build-docker: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Build docker image | |
run: | | |
docker build . |