Add support for Gitlab groups (#213) #555
This file contains hidden or 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: master | |
| on: | |
| push: | |
| pull_request_target: | |
| types: [labeled] | |
| branches: | |
| - master | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v2 | |
| with: | |
| version: v1.54.2 | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: # code from pull request | |
| ref: ${{github.event.pull_request.head.ref}} | |
| repository: ${{github.event.pull_request.head.repo.full_name}} | |
| - name: Build binary | |
| run: make build | |
| tests: | |
| runs-on: ubuntu-latest | |
| # https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ | |
| if: contains(github.event.pull_request.labels.*.name, 'safe to test') | |
| needs: lint | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| ref: ${{github.event.pull_request.head.ref}} | |
| repository: ${{github.event.pull_request.head.repo.full_name}} | |
| persist-credentials: false | |
| - name: Run tests | |
| env: | |
| TODOCHECK_ENV: "ci" | |
| TESTS_GITHUB_APITOKEN: ${{ secrets.TESTS_GITHUB_APITOKEN }} | |
| TESTS_GITLAB_APITOKEN: ${{ secrets.TESTS_GITLAB_APITOKEN }} | |
| TESTS_JIRA_APITOKEN: ${{ secrets.TESTS_JIRA_APITOKEN }} | |
| TESTS_PIVOTALTRACKER_APITOKEN: ${{ secrets.TESTS_PIVOTALTRACKER_APITOKEN }} | |
| TESTS_REDMINE_PRIVATE_APITOKEN: ${{ secrets.TESTS_REDMINE_PRIVATE_APITOKEN }} | |
| TESTS_YOUTRACK_PUBLIC_INCLOUD_APITOKEN: ${{ secrets.TESTS_YOUTRACK_PUBLIC_INCLOUD_APITOKEN }} | |
| TESTS_AZUREBOARDS_PRIVATE_APITOKEN: ${{ secrets.TESTS_AZUREBOARDS_PRIVATE_APITOKEN }} | |
| run: make test |