Skip to content

Commit

Permalink
disable other checks
Browse files Browse the repository at this point in the history
  • Loading branch information
fanny-jiang committed Jan 2, 2024
1 parent ff57e5a commit 1a2a52c
Show file tree
Hide file tree
Showing 4 changed files with 296 additions and 296 deletions.
122 changes: 61 additions & 61 deletions .github/workflows/build.yml
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
66 changes: 33 additions & 33 deletions .github/workflows/main.yml
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
44 changes: 22 additions & 22 deletions .github/workflows/pr-linter.yml
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
Loading

0 comments on commit 1a2a52c

Please sign in to comment.