build(github): update github action yaml (#347)

* build(github): update github action yaml

* fix
This commit is contained in:
HAOYUatHZ 2023-05-24 08:15:06 +08:00 committed by GitHub
parent 0c182f13bd
commit 9f981c5713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -3,7 +3,7 @@ name: Docker
on:
push:
tags:
- scroll-v**
- '*'
jobs:
build-and-push:

View file

@ -6,9 +6,15 @@ on:
- develop
- alpha
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
name: CI
jobs:
build:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Install Go
@ -21,6 +27,7 @@ jobs:
run: |
make geth
check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Install Go
@ -34,6 +41,7 @@ jobs:
rm -rf $HOME/.cache/golangci-lint
make lint
goimports-lint:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Install Go
@ -53,6 +61,7 @@ jobs:
exit 1
fi
test:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Install Go