fix(deps): update dependency @icons-pack/react-simple-icons to v9.7.0 #2840
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: ui service | |
on: | |
push: | |
branches: | |
- '**' | |
paths: | |
- .github/workflows/prepare-release.yaml | |
- .github/workflows/parse-jest-results.yaml | |
- .github/workflows/build-docker.yaml | |
- .github/workflows/release.yaml | |
- .github/workflows/ui.yaml | |
- services/ui/** | |
jobs: | |
prepare-release: | |
uses: ./.github/workflows/prepare-release.yaml | |
with: | |
working-dir: ./services/ui | |
build: | |
name: 🔨 Build and test UI | |
runs-on: ubuntu-latest | |
outputs: | |
license-artifact-name: license-report | |
license-artifact-path: ./services/ui/license-report | |
steps: | |
- name: ⬇️ Checkout | |
uses: actions/checkout@v4 | |
- name: 🏗 Setup node env | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: services/ui/.nvmrc | |
cache: 'npm' | |
cache-dependency-path: services/ui/package-lock.json | |
- name: 👨🏻💻 Install dependencies | |
working-directory: ./services/ui | |
run: npm clean-install | |
- name: 🧪 Run tests | |
working-directory: ./services/ui | |
run: npm run test:ci | |
- name: 📦 Upload test results | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-results | |
path: ./services/ui/junit.xml | |
- name: 🔎 Upload coverage report | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./services/ui/coverage/cobertura-coverage.xml | |
name: habitcentric/ui | |
- name: 🏗 Build | |
working-directory: ./services/ui | |
run: npm run build | |
- name: 📦 Upload build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ui-build | |
path: ./services/ui/build | |
- name: 📋 Generate license report | |
working-directory: ./services/ui | |
run: | | |
npm run license-report >licenses.txt | |
zip -r license-report.zip licenses licenses.txt | |
- name: 📦 Upload license report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: license-report | |
path: ./services/ui/license-report.zip | |
docker: | |
name: 🔨 Build and push Docker image | |
uses: ./.github/workflows/build-docker.yaml | |
needs: | |
- prepare-release | |
- build | |
with: | |
image-name: ui | |
working-dir: ./services/ui | |
version: ${{ needs.prepare-release.outputs.release-version }} | |
artifact-name: ui-build | |
artifact-path: ./services/ui/build | |
github-release: | |
uses: ./.github/workflows/release.yaml | |
needs: | |
- prepare-release | |
- build | |
- docker | |
with: | |
service-name: ui | |
version: ${{ needs.prepare-release.outputs.release-version }} | |
change-notes: ${{ needs.prepare-release.outputs.release-notes }} | |
license-artifact-name: ${{ needs.build.outputs.license-artifact-name }} | |
license-artifact-path: ${{ needs.build.outputs.license-artifact-path }} |