Bump the npm-dependencies group with 12 updates (#50) #46
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
on: | |
push: | |
tags: | |
- '*.*' | |
- '*.*.*' | |
branches: | |
- '*' | |
workflow_dispatch: # Manually invoked by user. | |
name: ci-build | |
env: | |
NODE_VERSION: 20 | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
shell: bash | |
run: npm ci | |
- name: Check | |
shell: bash | |
run: npm run check | |
- name: Install playwright | |
shell: bash | |
run: npx playwright install --with-deps | |
- name: Test | |
shell: bash | |
run: npm test | |
build-container: | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: ./.github/actions/containerize | |
with: | |
registry: ghcr.io | |
registry-path: ${{ github.repository_owner }}/frontend | |
registry-username: ${{ github.actor }} | |
registry-password: ${{ secrets.GITHUB_TOKEN }} | |
artifact-name: frontend | |
push-image: ${{ github.ref_type == 'branch' && github.event_name != 'pull_request' && (github.ref_name == 'master' || github.ref_name == 'develop') }} |