about summary refs log tree commit diff stats
path: root/.github
diff options
context:
space:
mode:
authorMarkus Wüstenberg2020-09-13 22:50:19 +0200
committerMarkus Wüstenberg2020-09-13 22:50:19 +0200
commitfc3cc0f0f3a59bf4fe27a4e32dc2ef420b3fa2f8 (patch)
treef3f933970dccd06a347613d3663035c023ac0017 /.github
downloadgomponents-fc3cc0f0f3a59bf4fe27a4e32dc2ef420b3fa2f8.tar.lz
gomponents-fc3cc0f0f3a59bf4fe27a4e32dc2ef420b3fa2f8.tar.zst
gomponents-fc3cc0f0f3a59bf4fe27a4e32dc2ef420b3fa2f8.zip
Add first implementation of Node, El, Attr, Text
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/go.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
new file mode 100644
index 0000000..e9ccec8
--- /dev/null
+++ b/.github/workflows/go.yml
@@ -0,0 +1,42 @@
+name: Go
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  build:
+    name: Build
+    runs-on: ubuntu-latest
+    steps:
+    - name: Set up Go 1.x
+      uses: actions/setup-go@v2
+      with:
+        go-version: ^1.15
+      id: go
+
+    - name: Check out
+      uses: actions/checkout@v2
+
+    - name: Get dependencies
+      run: go get -v -t -d ./...
+
+    - name: Build
+      run: go build -v .
+
+    - name: Test
+      run: go test -v ./...
+
+  lint:
+    name: Lint
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check out
+        uses: actions/checkout@v2
+
+      - name: Lint
+        uses: golangci/golangci-lint-action@v2
+        with:
+          version: v1.30