chore(deps-dev): bump eslint-plugin-jest from 27.9.0 to 28.3.0 (#321) #423
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: CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- name: Install | |
run: | | |
npm ci --ignore-scripts | |
- name: Lint | |
run: | | |
npm run format && npm run lint && npm run compile | |
- name: Test | |
run: | | |
npm run coverage | |
- name: Upload coverage | |
uses: codecov/codecov-action@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: DockerHub Login | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Image Meta | |
id: image-meta | |
uses: docker/metadata-action@v5 | |
with: | |
tags: | | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=sha,format=short,prefix= | |
images: ${{ secrets.DOCKERHUB_USERNAME }}/consents-api-node | |
- name: Push Image | |
uses: docker/build-push-action@v5 | |
with: | |
push: ${{ github.event_name == 'push' }} | |
tags: ${{ steps.image-meta.outputs.tags }} | |
labels: ${{ steps.image-meta.outputs.labels }} |