Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
f96f6119
Unverified
Commit
f96f6119
authored
Oct 06, 2021
by
Conner Fromknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add go/batch-submitter Makefile and actions runners
parent
65909122
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
86 additions
and
2 deletions
+86
-2
batch-submitter.yml
.github/workflows/batch-submitter.yml
+43
-0
golangci-lint.yml
.github/workflows/golangci-lint.yml
+8
-1
.gitignore
go/batch-submitter/.gitignore
+1
-0
Makefile
go/batch-submitter/Makefile
+26
-0
package.json
go/batch-submitter/package.json
+6
-0
package.json
package.json
+2
-1
No files found.
.github/workflows/batch-submitter.yml
0 → 100644
View file @
f96f6119
name
:
batch-submitter unit tests
on
:
push
:
paths
:
-
'
go/batch-submitter/**'
branches
:
-
'
master'
-
'
develop'
-
'
*rc'
-
'
regenesis/*'
pull_request
:
paths
:
-
'
go/batch-submitter/*'
branches
:
-
'
master'
-
'
develop'
-
'
*rc'
-
'
regenesis/*'
workflow_dispatch
:
defaults
:
run
:
working-directory
:
'
./go/batch-submitter'
jobs
:
tests
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Install Go
uses
:
actions/setup-go@v2
with
:
go-version
:
1.16.x
-
name
:
Checkout code
uses
:
actions/checkout@v2
-
name
:
Install
run
:
make
-
name
:
Test
run
:
make test
.github/workflows/golangci-lint.yml
View file @
f96f6119
...
@@ -3,6 +3,7 @@ on:
...
@@ -3,6 +3,7 @@ on:
push
:
push
:
paths
:
paths
:
-
'
go/gas-oracle/**'
-
'
go/gas-oracle/**'
-
'
go/batch-submitter/**'
branches
:
branches
:
-
'
master'
-
'
master'
-
'
develop'
-
'
develop'
...
@@ -11,6 +12,7 @@ on:
...
@@ -11,6 +12,7 @@ on:
pull_request
:
pull_request
:
paths
:
paths
:
-
'
go/gas-oracle/**'
-
'
go/gas-oracle/**'
-
'
go/batch-submitter/**'
branches
:
branches
:
-
'
master'
-
'
master'
-
'
develop'
-
'
develop'
...
@@ -22,8 +24,13 @@ jobs:
...
@@ -22,8 +24,13 @@ jobs:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
-
name
:
golangci-lint
-
name
:
golangci-lint
gas-oracle
uses
:
golangci/golangci-lint-action@v2
uses
:
golangci/golangci-lint-action@v2
with
:
with
:
version
:
v1.29
version
:
v1.29
working-directory
:
go/gas-oracle
working-directory
:
go/gas-oracle
-
name
:
golangci-lint batch-submitter
uses
:
golangci/golangci-lint-action@v2
with
:
version
:
v1.29
working-directory
:
go/batch-submitter
go/batch-submitter/.gitignore
0 → 100644
View file @
f96f6119
/batch-submitter
go/batch-submitter/Makefile
0 → 100644
View file @
f96f6119
GITCOMMIT
:=
$(
shell
git rev-parse HEAD
)
GITDATE
:=
$(
shell
git show
-s
--format
=
'%ct'
)
GITVERSION
:=
$(
shell
cat
package.json | jq .version
)
LDFLAGSSTRING
+=
-X
main.GitCommit
=
$(GITCOMMIT)
LDFLAGSSTRING
+=
-X
main.GitDate
=
$(GITDATE)
LDFLAGSSTRING
+=
-X
main.GitVersion
=
$(GITVERSION)
LDFLAGS
:=
-ldflags
"
$(LDFLAGSSTRING)
"
batch-submitter
:
env
GO111MODULE
=
on go build
$(LDFLAGS)
./cmd/batch-submitter
clean
:
rm
batch-submitter
test
:
go
test
-v
./...
lint
:
golangci-lint run ./...
.PHONY
:
\
batch-submitter
\
clean
\
test
\
lint
go/batch-submitter/package.json
0 → 100644
View file @
f96f6119
{
"name"
:
"@eth-optimism/batch-submitter-service"
,
"version"
:
"0.0.1"
,
"private"
:
true
,
"devDependencies"
:
{}
}
package.json
View file @
f96f6119
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
"l2geth"
,
"l2geth"
,
"integration-tests"
,
"integration-tests"
,
"specs"
,
"specs"
,
"go/gas-oracle"
"go/gas-oracle"
,
"go/batch-submitter"
],
],
"nohoist"
:
[
"nohoist"
:
[
"examples/*"
"examples/*"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment