Skip to content

Commit 8840184

Browse files
authored
Merge pull request #10 from Code0x58/update-actions
Migrate to non-beta GitHub Actions
2 parents d763442 + 0dc8d67 commit 8840184

8 files changed

Lines changed: 45 additions & 49 deletions

File tree

.github/actions/go-check/Dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/actions/go-check/go-check

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/actions/go-release/Dockerfile

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/actions/go-release/go-release

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/main.workflow

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/check.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Basic quality checks
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-20.04
6+
steps:
7+
- name: Checkout code
8+
uses: actions/checkout@v2
9+
with:
10+
fetch-depth: 0
11+
- name: Install Go
12+
uses: actions/setup-go@v2
13+
with:
14+
go-version: 1.15
15+
- name: Fmt
16+
run: gofmt -d ./
17+
- name: Vet
18+
run: go vet ./
19+
- name: Build
20+
run: go build

.github/workflows/release.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
on:
3+
push:
4+
tags: ['*']
5+
jobs:
6+
release:
7+
runs-on: ubuntu-20.04
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
- name: Install Go
14+
uses: actions/setup-go@v2
15+
with:
16+
go-version: 1.15
17+
- name: Run GoReleaser
18+
uses: goreleaser/goreleaser-action@v2
19+
with:
20+
version: latest
21+
args: release --rm-dist
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module github.com/Code0x58/gitlab-ci-validate
22

3+
go 1.15
4+
35
require (
46
github.com/ghodss/yaml v1.0.0
57
gopkg.in/yaml.v2 v2.2.2 // indirect

0 commit comments

Comments
 (0)