Skip to content

Commit

Permalink
update CI workflow to test pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
LordNoteworthy committed Aug 29, 2023
1 parent 1c9a8c5 commit 1f0f9ae
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,37 @@ jobs:
name: build-test
strategy:
matrix:
go-version: [1.16.x, 1.17.x, 1.18.x]
go-version: [1.16.x, 1.17.x, 1.18.x, 1.19.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
check-latest: true
cache: true

- name: Test With Coverage
run: go test -race -coverprofile=coverage -covermode=atomic

- name: Run Vet & Staticcheck
run: |
go vet .
staticcheck
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.19.x'

- name: Go vet
run: |
go vet .
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.19.x'

- name: Staticcheck
uses: dominikh/staticcheck-action@v1.3.0
with:
version: "2022.1"
install-go: false
cache-key: ${{ matrix.go-version }}
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.19.x'

9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ELF File Format Parser
# ELF File Format Parser

-----

Expand Down Expand Up @@ -48,10 +48,11 @@ func main() {
fmt.Println(jsonFile)
}

```

## References

```
- https://refspecs.linuxfoundation.org/elf/elf.pdf
- https://github.com/freebsd/freebsd-src/blob/main/sys/sys/elf_common.h

## Docs & API

:construction:

0 comments on commit 1f0f9ae

Please sign in to comment.