mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
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:
parent
40cd4578bf
commit
a3fb49db2c
45
.github/workflows/zitadel-pr.yml
vendored
Normal file
45
.github/workflows/zitadel-pr.yml
vendored
Normal 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
|
||||||
|
|
3
.github/workflows/zitadel.yml
vendored
3
.github/workflows/zitadel.yml
vendored
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user