ALL-9118 - Upgrade Node, NPM and other libraries #202
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: Pull request | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.20.5' | |
- run: yarn install | |
- run: yarn lint | |
- run: yarn build | |
- run: yarn test | |
- run: npx github-actions-ctrf summary ctrf/ctrf-report.json --pull-request | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
docker-build: | |
name: Build Docker Image | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build image | |
run: docker build . --file Dockerfile -t ${{secrets.DOCKER_USER}}/tatum-kms:latest -t "${{secrets.DOCKER_USER}}/tatum-kms:$(cat ./package.json | jq -r ".version")" | |
- name: smoke test image | |
run: docker run -i ${{secrets.DOCKER_USER}}/tatum-kms:latest --help | |