fix rpc-test action (#402)

This commit is contained in:
noot
2020-07-23 15:38:47 -04:00
committed by GitHub
parent d69aad2016
commit cc6b5d04f2
7 changed files with 136 additions and 122 deletions
+19
View File
@@ -0,0 +1,19 @@
name: Remove old artifacts
# Remove old artifacts runs a crob job that removes old artifacts
# generated from the split tests workflow.
on:
schedule:
# Every day at 1am
- cron: "0 1 * * *"
jobs:
remove-old-artifacts:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Remove old artifacts
uses: c-hive/gha-remove-artifacts@v1
with:
age: "7 days"
+1 -1
View File
@@ -11,7 +11,7 @@ jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
timeout-minutes: 6
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
+17 -17
View File
@@ -7,6 +7,23 @@ on:
branches:
- development
jobs:
rpc-tests:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
id: git_diff
with:
SUFFIX_FILTER: |
.go
.mod
.sum
- name: rpc-test
run: |
make test-rpc
if: "env.GIT_DIFF != ''"
split-test-files:
runs-on: ubuntu-latest
steps:
@@ -176,23 +193,6 @@ jobs:
file: ./coverage.txt
fail_ci_if_error: true
if: "env.GIT_DIFF != ''"
rpc-tests:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v1
id: git_diff
with:
SUFFIX_FILTER: |
.go
.mod
.sum
- name: rpc-test
run: |
make test-rpc
if: "env.GIT_DIFF != ''"
# TODO: remove tmp dir to fix this
# test-importer:
# runs-on: ubuntu-latest