Renovate: use common config #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Danger Go" | |
on: [pull_request] | |
jobs: | |
danger: | |
name: Danger Go | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.19' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '14' | |
- name: Install Danger JS | |
run: npm install -g danger | |
- name: Install danger-go | |
run: go install github.com/luno/danger-go/cmd/danger-go | |
- name: Check versions | |
run: | | |
go version | |
danger-go version | |
danger -V | |
- name: Run danger-go ci | |
run: danger-go ci | |
working-directory: ./build/ci | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.19' | |
- name: Go tests | |
run: go test -v ./... |