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: on:
push: push:
tags: tags:
- scroll-v** - '*'
jobs: jobs:
build-and-push: build-and-push:

View file

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