-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #537 from v3io/development
Development
- Loading branch information
Showing
17 changed files
with
261 additions
and
206 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- development | ||
- 'v[0-9]+.[0-9]+.x' | ||
|
||
jobs: | ||
test: | ||
name: Lint & test | ||
runs-on: ubuntu-latest | ||
env: | ||
TSDB_TEST_TABLE_PATH: TSDB_INTEGRATION_TESTS/${{ github.sha }} | ||
|
||
steps: | ||
- name: Dump github context | ||
run: echo "$GITHUB_CONTEXT" | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- name: Dump runner context | ||
run: echo "$RUNNER_CONTEXT" | ||
env: | ||
RUNNER_CONTEXT: ${{ toJson(runner) }} | ||
|
||
- name: Dump github ref | ||
run: echo "$GITHUB_REF" | ||
|
||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "^1.14.0" | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: refs/pull/${{ github.event.number }}/merge | ||
|
||
- name: Lint | ||
run: make lint | ||
|
||
- name: Test short | ||
run: make test | ||
|
||
- name: Test integration | ||
env: | ||
V3IO_API: ${{ secrets.V3IO_API }} | ||
V3IO_ACCESS_KEY: ${{ secrets.V3IO_ACCESS_KEY }} | ||
V3IO_TSDB_CONFIG: ${{ github.workspace }}/test/ci_v3io.yaml | ||
run: make integration | ||
|
||
- name: Benchmark | ||
env: | ||
V3IO_API: ${{ secrets.V3IO_API }} | ||
V3IO_ACCESS_KEY: ${{ secrets.V3IO_ACCESS_KEY }} | ||
V3IO_TSDB_CONFIG: ${{ github.workspace }}/test/ci_v3io_bench.yaml | ||
TSDB_BENCH_INGEST_CONFIG: ${{ github.workspace }}/test/benchmark/testdata/tsdb-bench-test-config-ci.yaml | ||
run: make bench |
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 |
---|---|---|
@@ -0,0 +1,128 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
test: | ||
name: Lint & test | ||
runs-on: ubuntu-latest | ||
env: | ||
TSDB_TEST_TABLE_PATH: TSDB_INTEGRATION_TESTS/${{ github.sha }} | ||
|
||
steps: | ||
- name: Dump github context | ||
run: echo "$GITHUB_CONTEXT" | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- name: Dump runner context | ||
run: echo "$RUNNER_CONTEXT" | ||
env: | ||
RUNNER_CONTEXT: ${{ toJson(runner) }} | ||
|
||
- name: Dump github ref | ||
run: echo "$GITHUB_REF" | ||
|
||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "^1.14.0" | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Lint | ||
run: make lint | ||
|
||
- name: Test short | ||
run: make test | ||
|
||
- name: Test integration | ||
env: | ||
V3IO_API: ${{ secrets.V3IO_API }} | ||
V3IO_ACCESS_KEY: ${{ secrets.V3IO_ACCESS_KEY }} | ||
V3IO_TSDB_CONFIG: ${{ github.workspace }}/test/ci_v3io.yaml | ||
run: make integration | ||
|
||
- name: Benchmark | ||
env: | ||
V3IO_API: ${{ secrets.V3IO_API }} | ||
V3IO_ACCESS_KEY: ${{ secrets.V3IO_ACCESS_KEY }} | ||
V3IO_TSDB_CONFIG: ${{ github.workspace }}/test/ci_v3io_bench.yaml | ||
TSDB_BENCH_INGEST_CONFIG: ${{ github.workspace }}/test/benchmark/testdata/tsdb-bench-test-config-ci.yaml | ||
run: make bench | ||
|
||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'release' | ||
needs: | ||
- test | ||
strategy: | ||
matrix: | ||
go-os: | ||
- linux | ||
- darwin | ||
- windows | ||
|
||
steps: | ||
- name: Dump GitHub context | ||
run: echo "$GITHUB_CONTEXT" | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
- name: Dump runner context | ||
run: echo "$RUNNER_CONTEXT" | ||
env: | ||
RUNNER_CONTEXT: ${{ toJson(runner) }} | ||
|
||
- name: Dump github ref | ||
run: echo "$GITHUB_REF" | ||
|
||
- name: Extract ref info | ||
id: release_info | ||
run: | | ||
echo ::set-output name=REF_BRANCH::${GITHUB_REF#refs/heads/} | ||
echo ::set-output name=REF_TAG::${GITHUB_REF#refs/tags/} | ||
- name: Set TSDB_LABEL to release tag | ||
run: | | ||
echo "::set-env name=TSDB_LABEL::${{ steps.release_info.outputs.REF_TAG }}" | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "^1.14.0" | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Build binaries for ${{ matrix.go-os }} | ||
run: make bin | ||
env: | ||
GOPATH: ${{ github.workspace }}/go | ||
GOARCH: amd64 | ||
GOOS: ${{ matrix.go-os }} | ||
|
||
- name: Upload binaries | ||
uses: AButler/[email protected] | ||
with: | ||
files: ${{ github.workspace }}/go/bin/tsdbctl-* | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.