Github CI/CD to build the tool

main
Swissky 2023-05-05 17:43:31 +02:00
parent 74c8c06b32
commit 2095d39227
2 changed files with 33 additions and 0 deletions

30
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: 🔨 Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest-16-cores
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.20
- name: Test
run: go test ./...
- name: Build
run: go build .
- uses: actions/upload-artifact@master
with:
name: JSLeak
path: jsleak

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module jsleak
go 1.20