-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff57e5a
commit 1a2a52c
Showing
4 changed files
with
296 additions
and
296 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,61 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build-linux-binary: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: gcc install | ||
run: sudo apt-get update; sudo apt install gcc-aarch64-linux-gnu | ||
- name: Get tag | ||
uses: little-core-labs/[email protected] | ||
id: tag | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v3 | ||
with: | ||
version: latest | ||
args: build --skip-validate --config .goreleaser-for-linux.yaml | ||
build-darwin-binary: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get tag | ||
uses: little-core-labs/[email protected] | ||
id: tag | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
- name: Build | ||
uses: goreleaser/goreleaser-action@v3 | ||
with: | ||
args: build --skip-validate --config .goreleaser-for-darwin.yaml | ||
build-windows-binary: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get tag | ||
uses: little-core-labs/[email protected] | ||
id: tag | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
- name: Build | ||
uses: goreleaser/goreleaser-action@v3 | ||
with: | ||
args: build --skip-validate --config .goreleaser-for-windows.yaml | ||
#name: Build | ||
# | ||
#on: | ||
# push: | ||
# | ||
#jobs: | ||
# build-linux-binary: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 0 | ||
# - name: gcc install | ||
# run: sudo apt-get update; sudo apt install gcc-aarch64-linux-gnu | ||
# - name: Get tag | ||
# uses: little-core-labs/[email protected] | ||
# id: tag | ||
# - name: Set up Go | ||
# uses: actions/setup-go@v3 | ||
# with: | ||
# go-version: 1.19 | ||
# - name: Run GoReleaser | ||
# uses: goreleaser/goreleaser-action@v3 | ||
# with: | ||
# version: latest | ||
# args: build --skip-validate --config .goreleaser-for-linux.yaml | ||
# build-darwin-binary: | ||
# runs-on: macos-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 0 | ||
# - name: Get tag | ||
# uses: little-core-labs/[email protected] | ||
# id: tag | ||
# - name: Set up Go | ||
# uses: actions/setup-go@v3 | ||
# with: | ||
# go-version: 1.19 | ||
# - name: Build | ||
# uses: goreleaser/goreleaser-action@v3 | ||
# with: | ||
# args: build --skip-validate --config .goreleaser-for-darwin.yaml | ||
# build-windows-binary: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# with: | ||
# fetch-depth: 0 | ||
# - name: Get tag | ||
# uses: little-core-labs/[email protected] | ||
# id: tag | ||
# - name: Set up Go | ||
# uses: actions/setup-go@v3 | ||
# with: | ||
# go-version: 1.19 | ||
# - name: Build | ||
# uses: goreleaser/goreleaser-action@v3 | ||
# with: | ||
# args: build --skip-validate --config .goreleaser-for-windows.yaml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
name: validation | ||
on: [push, pull_request] | ||
env: | ||
PROJECTNAME: "datadog-operator" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.19 | ||
id: go | ||
- name: install required packages | ||
uses: mstksg/get-package@v1 | ||
with: | ||
apt-get: mercurial jq build-essential | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
- name: install tools | ||
run: | | ||
make install-tools | ||
- name: run build | ||
run: | | ||
make manager | ||
- name: run unit tests and E2E tests (fake cluster) | ||
run: | | ||
make test | ||
- uses: codecov/codecov-action@v2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: cover.out,cover_integration_v1.out,cover_integration_v2.out | ||
flags: unittests | ||
#name: validation | ||
#on: [push, pull_request] | ||
#env: | ||
# PROJECTNAME: "datadog-operator" | ||
#jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Set up Go | ||
# uses: actions/setup-go@v1 | ||
# with: | ||
# go-version: 1.19 | ||
# id: go | ||
# - name: install required packages | ||
# uses: mstksg/get-package@v1 | ||
# with: | ||
# apt-get: mercurial jq build-essential | ||
# - name: Check out code into the Go module directory | ||
# uses: actions/checkout@v1 | ||
# - name: install tools | ||
# run: | | ||
# make install-tools | ||
# - name: run build | ||
# run: | | ||
# make manager | ||
# - name: run unit tests and E2E tests (fake cluster) | ||
# run: | | ||
# make test | ||
# - uses: codecov/codecov-action@v2 | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
# files: cover.out,cover_integration_v1.out,cover_integration_v2.out | ||
# flags: unittests |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
name: pull request linter | ||
on: | ||
pull_request_target: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
- name: Verify Pull Request Labels | ||
uses: jesusvasquez333/[email protected] | ||
with: | ||
github-token: '${{ secrets.GITHUB_TOKEN }}' | ||
valid-labels: 'bug, enhancement, refactoring, documentation, tooling, dependencies' | ||
pull-request-number: '${{ github.event.pull_request.number }}' | ||
check-milestone: | ||
name: Check Milestone | ||
runs-on: ubuntu-latest | ||
steps: | ||
- if: github.event.pull_request.milestone == null && !contains(toJson(github.event.pull_request.labels.*.name), 'qa/skip-qa') | ||
run: echo "::error::Missing milestone or \`qa/skip-qa\` label" && exit 1 | ||
#name: pull request linter | ||
#on: | ||
# pull_request_target: | ||
# types: [opened, labeled, unlabeled, synchronize] | ||
#jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Check out code into the Go module directory | ||
# uses: actions/checkout@v1 | ||
# - name: Verify Pull Request Labels | ||
# uses: jesusvasquez333/[email protected] | ||
# with: | ||
# github-token: '${{ secrets.GITHUB_TOKEN }}' | ||
# valid-labels: 'bug, enhancement, refactoring, documentation, tooling, dependencies' | ||
# pull-request-number: '${{ github.event.pull_request.number }}' | ||
# check-milestone: | ||
# name: Check Milestone | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - if: github.event.pull_request.milestone == null && !contains(toJson(github.event.pull_request.labels.*.name), 'qa/skip-qa') | ||
# run: echo "::error::Missing milestone or \`qa/skip-qa\` label" && exit 1 |
Oops, something went wrong.