Skip to content

Commit

Permalink
Add github actions for push / PRs.
Browse files Browse the repository at this point in the history
Also, fix test
  • Loading branch information
trhodeos committed Oct 14, 2022
1 parent 998310e commit 46aa5fa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/pullRequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Pull request

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
2 changes: 1 addition & 1 deletion spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func convertSegmentAst(s *SegmentAst) (*Segment, error) {
if statement.Value.ConstantValue.Lhs.Symbol != "" {
seg.StackInfo.Start = statement.Value.ConstantValue.Lhs.Symbol
} else {
seg.StackInfo.Start = string(statement.Value.ConstantValue.Lhs.Int)
seg.StackInfo.Start = fmt.Sprint(statement.Value.ConstantValue.Lhs.Int)
}
if statement.Value.ConstantValue.Rhs.Int != 0 {
seg.StackInfo.Offset = statement.Value.ConstantValue.Rhs.Int
Expand Down

0 comments on commit 46aa5fa

Please sign in to comment.