-
Notifications
You must be signed in to change notification settings - Fork 4
70 lines (64 loc) · 1.9 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: continuous-integration
on:
pull_request:
branches:
- '*'
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
SHELL: /bin/bash
defaults:
run:
shell: bash
jobs:
test-vroom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: 'stable'
- run: go install golang.org/x/tools/cmd/goimports@latest
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.51.1
- uses: pre-commit/[email protected]
- run: make test
- name: TruffleHog OSS
uses: trufflesecurity/[email protected]
with:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
extra_args: --debug --only-verified
self-hosted-end-to-end:
runs-on: ubuntu-latest
timeout-minutes: 30
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Build vroom
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: localhost:5000/getsentry/vroom:latest
- name: Run Sentry self-hosted e2e CI
# Skip for dependabot or if it's a fork as the image cannot be uploaded to ghcr since this test attempts to pull
# the image from ghcr
if: "!github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]'"
uses: getsentry/action-self-hosted-e2e-tests@main
with:
project_name: vroom
image_url: localhost:5000/getsentry/vroom:latest
docker_repo: getsentry/vroom
docker_password: ${{ secrets.DOCKER_HUB_RW_TOKEN }}