From e267ef544b57057a5e6157358628ee914ae36a86 Mon Sep 17 00:00:00 2001 From: Oleg Bespalov Date: Tue, 22 Aug 2023 13:08:06 +0200 Subject: [PATCH] Use re-usable workflow --- .github/workflows/all.yml | 23 ++----------------- .github/workflows/lint.yml | 45 -------------------------------------- 2 files changed, 2 insertions(+), 66 deletions(-) delete mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index 2cb7f10..c27b083 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -9,25 +9,6 @@ on: - v* pull_request: -defaults: - run: - shell: bash - jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version: 1.19.x - - name: Run tests - run: | - set -x - which go - go version - export GOMAXPROCS=2 - args=("-p" "2" "-race") - go test "${args[@]}" -timeout 800s ./... + checks: + uses: grafana/k6-ci/.github/workflows/all.yml@main \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index e3ca50f..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Lint -on: push - -defaults: - run: - shell: bash - -jobs: - deps: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version: 1.19.x - - name: Check dependencies - run: | - go version - test -z "$(go mod tidy && git status --porcelain)" - go mod verify - - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version: 1.19.x - - name: Retrieve golangci-lint version - run: | - echo "::set-output name=Version::$(head -n 1 "${GITHUB_WORKSPACE}/.golangci.yml" | tr -d '# ')" - id: version - - name: golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: ${{ steps.version.outputs.Version }}