chore: test angular on PR (#3541)

* chore: test angular on PR

* publish go test coverage

* fix gorelease

* update node version
This commit is contained in:
Livio Amstutz 2022-04-29 14:08:42 +02:00 committed by GitHub
parent 40cd4578bf
commit a3fb49db2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 4 deletions

45
.github/workflows/zitadel-pr.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: ZITADEL PR
on:
pull_request:
jobs:
Go:
runs-on: ubuntu-20.04
env:
DOCKER_BUILDKIT: 1
steps:
- name: Source checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
driver: docker
install: true
- name: Test
run: docker build -f build/grpc/Dockerfile -t zitadel-base:local . && docker build -f build/zitadel/Dockerfile . -t zitadel-go-test --target go-codecov -o .artifacts/codecov
Angular:
runs-on: ubuntu-20.04
env:
DOCKER_BUILDKIT: 1
steps:
- name: Source checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
driver: docker
install: true
- name: Test
run: docker build -f build/grpc/Dockerfile -t zitadel-base:local . && docker build -f build/console/Dockerfile . -t zitadel-npm-base --target angular-build
- name: Publish go coverage
uses: codecov/codecov-action@v3.1.0
with:
file: .artifacts/codecov/profile.cov
name: go-codecov

View File

@ -1,7 +1,6 @@
name: ZITADEL Release name: ZITADEL Release
on: on:
pull_request:
push: push:
tags-ignore: tags-ignore:
- "*" - "*"
@ -30,8 +29,6 @@ jobs:
with: with:
driver: docker driver: docker
install: true install: true
- name: Test
run: docker build -f build/grpc/Dockerfile -t zitadel-base:local . && docker build -f build/zitadel/Dockerfile . -t zitadel-go-test --target go-codecov -o .artifacts/codecov
- name: Tag - name: Tag
id: semantic id: semantic
uses: cycjimmy/semantic-release-action@v2 uses: cycjimmy/semantic-release-action@v2

View File

@ -1,4 +1,4 @@
ARG NODE_VERSION=14 ARG NODE_VERSION=16
####################### #######################
## With this step we prepare all node_modules, this helps caching the build ## With this step we prepare all node_modules, this helps caching the build