This repository was archived by the owner on Oct 9, 2024. It is now read-only.
fix(deps): update angular monorepo to v17.3.12 #439
This file contains hidden or 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: Continuous Integration | |
on: [push, pull_request] | |
permissions: | |
packages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
IMAGE_REPO: ghcr.io/${{ github.repository_owner }}/server-test | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Restore cached Angular Test App | |
id: angular-app-cache | |
uses: actions/cache@v3 | |
with: | |
path: test/angular/dist | |
key: angular-apps-${{ hashFiles('**/test/angular/angular.json', '**/test/angular/package-lock.json', '**/test/angular/projects/**') }} | |
- uses: actions/setup-node@v4 | |
if: steps.angular-app-cache.outputs.cache-hit != 'true' | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
cache-dependency-path: 'test/angular/package-lock.json' | |
- name: Install Angular Test App | |
if: steps.angular-app-cache.outputs.cache-hit != 'true' | |
run: npm ci | |
working-directory: ./test/angular | |
- name: Lint | |
run: gofmt -l . | |
- name: Build | |
run: go build | |
- name: Test | |
run: go test ./... -coverprofile=coverage.out | |
- name: Coverage | |
run: go tool cover -func=coverage.out | |
- name: Login to ghcr.io | |
if: github.repository.fork == false | |
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin | |
- name: Container | |
run: docker build --tag $IMAGE_REPO:$(echo "${{ github.ref_name }}" | tr / _) . | |
env: | |
DOCKER_BUILDKIT: 1 | |
- name: 'Container: Publish image' | |
if: github.repository.fork == false | |
run: docker push $IMAGE_REPO:$(echo "${{ github.ref_name }}" | tr / _) |