Skip to content

Commit

Permalink
Remove embed files from git (#209)
Browse files Browse the repository at this point in the history
* Removes dsn file so releaser can work

- Adds make setup
- Removes from the repo
- Setup gitignore
- Fix gorelease ref
- Setup repo on snyk runner
  • Loading branch information
cyx authored Mar 29, 2021
1 parent 355a27b commit 03cc4b2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Prepare instrumentation
run: |
echo -n "$SENTRY_DSN" >> $GITHUB_WORKSPACE/internal/instrumentation/sentry_dsn
echo -n "$SENTRY_DSN" >> $GITHUB_WORKSPACE/internal/instrumentation/sentrydsn.txt
shell: bash
env:
SENTRY_DSN : ${{secrets.SENTRY_DSN}}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup repo
run: |
touch $GITHUB_WORKSPACE/internal/instrumentation/sentrydsn.txt
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/golang@master
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# project artifacts
/auth0
/internal/instrumentation/sentrydsn.txt

# Swap
[._]*.s[a-v][a-z]
Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ generate:
go generate ./...
.PHONY: generate

test:
setup:
@touch ./internal/instrumentation/sentrydsn.txt

test: setup
CGO_ENABLED=1 go test -race ./... -count 1
.PHONY: test

lint:
lint: setup
golangci-lint run -v --timeout=5m
.PHONY: lint

Expand All @@ -53,7 +56,7 @@ build-all-platforms:
.PHONY: build-all-platforms

# Run all the tests and code checks
ci: build-all-platforms test lint
ci: setup build-all-platforms test lint
.PHONY: ci

$(GOBIN)/mockgen:
Expand Down
Empty file.

0 comments on commit 03cc4b2

Please sign in to comment.