mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
84f0e24c63
* initital ide * init * it is alive * go test is running * wip with buildkit * it definitly alive * all done, now the github actions * pretty * before i delete the generated proto stub * delete generated code * mount of grpc does not yet work * save before * level of insanity 1000% * huhur * gh action new dockerfile * fix * fix * fix * fix * amd64 only * try caching * try with reg * test with artifact upload * trial * add comments * publish branchname * correct vars * correct id * mode max for cache * remove unused code * cleanup * test action which uploads coverage * use * proper path * debug file location * path * test if ci still works * correct docker file name
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Code Coverage
|
|
on: push
|
|
|
|
env:
|
|
REGISTRY: ghcr.io
|
|
NODE_VERSION: '12'
|
|
GO_VERSION: '1.15'
|
|
|
|
jobs:
|
|
container:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Source checkout
|
|
uses: actions/checkout@v2
|
|
- name: Cache Docker layers
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: /tmp/.buildx-cache
|
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
|
restore-keys: |
|
|
${{ runner.os }}-buildx-
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- uses: docker/build-push-action@v2
|
|
with:
|
|
context: .
|
|
file: ./build/dockerfile
|
|
platforms: linux/amd64
|
|
tags: ${{ env.REGISTRY }}/${{ github.repository }}:coverage
|
|
push: false
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache
|
|
target: go-codecov
|
|
outputs: type=local,dest=.
|
|
- uses: codecov/codecov-action@v1
|
|
with:
|
|
file: ./profile.cov
|
|
name: codecov-go |