Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Commit 3773cee

Browse files
committed
Updated actions, and added stable import path
1 parent 5afaf5f commit 3773cee

File tree

12 files changed

+155
-95
lines changed

12 files changed

+155
-95
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: auto-merge-deps
2+
3+
on:
4+
pull_request_target:
5+
6+
jobs:
7+
auto-merge:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2.3.4
11+
- uses: ahmadnassri/action-dependabot-auto-merge@v2.4
12+
with:
13+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ on: [push, pull_request]
55

66
jobs:
77
build:
8+
name: "Build"
89
strategy:
910
matrix:
1011
go-version: [1.15.x, 1.16.x]
1112
platform: [ubuntu-latest, macos-latest, windows-latest]
1213
fail-fast: true
1314
runs-on: ${{ matrix.platform }}
1415
steps:
15-
- uses: actions/checkout@v2.3.4
1616
- name: Install Go
1717
uses: actions/setup-go@v2
1818
with:
@@ -22,14 +22,18 @@ jobs:
2222
- name: Build
2323
run: go build ./...
2424
test:
25+
name: "Unit Tests"
26+
needs: [build]
2527
strategy:
2628
matrix:
2729
platform: [ubuntu-latest, macos-latest, windows-latest]
2830
fail-fast: true
2931
runs-on: ${{ matrix.platform }}
3032
steps:
31-
- uses: actions/checkout@v2.3.4
32-
- uses: actions/setup-go@v2
33+
- name: Checkout code
34+
uses: actions/checkout@v2.3.4
35+
- name: Install Go
36+
uses: actions/setup-go@v2
3337
with:
3438
go-version: 1.16.x
3539
- name: Test
@@ -38,4 +42,4 @@ jobs:
3842
uses: codecov/codecov-action@v2.0.2
3943
with:
4044
token: ${{ secrets.CODECOV_TOKEN }}
41-
file: ./coverage.txt
45+
file: ./coverage.txt

.github/workflows/codeql-analysis.yml

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

.github/workflows/codeql.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
2+
name: "Code Scanning - Action"
3+
4+
on:
5+
push:
6+
branches: main
7+
schedule:
8+
# ┌───────────── minute (0 - 59)
9+
# │ ┌───────────── hour (0 - 23)
10+
# │ │ ┌───────────── day of the month (1 - 31)
11+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
12+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
13+
# │ │ │ │ │
14+
# │ │ │ │ │
15+
# │ │ │ │ │
16+
# * * * * *
17+
- cron: '30 1 * * 0'
18+
19+
jobs:
20+
CodeQL-Build:
21+
strategy:
22+
matrix:
23+
go-version: [1.16.x]
24+
platform: [ubuntu-latest, macos-latest, windows-latest]
25+
fail-fast: true
26+
runs-on: ${{ matrix.platform }}
27+
28+
steps:
29+
- name: Install Go
30+
uses: actions/setup-go@v2
31+
with:
32+
go-version: ${{ matrix.go-version }}
33+
- name: Checkout code
34+
uses: actions/checkout@v2.3.4
35+
- name: Build
36+
run: go build ./...
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@v1
39+
with:
40+
languages: go
41+
- name: Perform CodeQL Analysis
42+
uses: github/codeql-action/analyze@v1

.github/workflows/release.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: "tagged-release"
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
name: "Build & Unit Tests"
11+
strategy:
12+
matrix:
13+
platform: [ubuntu-latest, macos-latest, windows-latest]
14+
fail-fast: true
15+
runs-on: ${{ matrix.platform }}
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2.3.4
19+
- name: Install Go
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: 1.16.x
23+
- name: Build
24+
run: go build ./...
25+
- name: Test
26+
run: go test -v -race ./...
27+
codeql:
28+
name: "CodeQL Check"
29+
needs: [build]
30+
strategy:
31+
matrix:
32+
go-version: [1.16.x]
33+
platform: [ubuntu-latest, macos-latest, windows-latest]
34+
fail-fast: true
35+
runs-on: ${{ matrix.platform }}
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v2.3.4
39+
- name: Initialize CodeQL
40+
uses: github/codeql-action/init@v1
41+
with:
42+
languages: go
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@v1
45+
release:
46+
needs: [build, codeql]
47+
name: "Tagged Release"
48+
runs-on: "ubuntu-latest"
49+
steps:
50+
- name: Checkout code
51+
uses: actions/checkout@v2.3.4
52+
- name: Build changelog
53+
id: build_changelog
54+
uses: mikepenz/release-changelog-builder-action@main
55+
with:
56+
configuration: 'release-config.json'
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
- name: Create release
60+
id: create_release
61+
uses: actions/create-release@latest
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
with:
65+
tag_name: ${{ github.ref }}
66+
release_name: Release ${{ github.ref }}
67+
body: ${{steps.build_changelog.outputs.changelog}}
68+
draft: false
69+
prerelease: false

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ linters:
8181
- gocyclo
8282
- gofmt
8383
- goimports
84-
- golint
84+
- revive
8585
- gomnd
8686
- goprintffuncname
8787
- gosec
@@ -94,7 +94,7 @@ linters:
9494
- noctx
9595
- nolintlint
9696
- rowserrcheck
97-
- scopelint
97+
- exportloopref
9898
- staticcheck
9999
- structcheck
100100
- stylecheck

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Monte Carlo PI Estimation Atoms for Atomizer
22

33
[![CI](https://github.com/devnw/montecarlopi/actions/workflows/build.yml/badge.svg)](https://github.com/devnw/montecarlopi/actions)
4-
[![Go Report Card](https://goreportcard.com/badge/atomizer.io/montecarlopi)](https://goreportcard.com/report/atomizer.io/montecarlopi)
4+
[![Go Report Card](https://goreportcard.com/badge/go.atomizer.io/montecarlopi)](https://goreportcard.com/report/go.atomizer.io/montecarlopi)
55
[![codecov](https://codecov.io/gh/devnw/montecarlopi/branch/main/graph/badge.svg)](https://codecov.io/gh/devnw/montecarlopi)
6-
[![Go Reference](https://pkg.go.dev/badge/atomizer.io/montecarlopi.svg)](https://pkg.go.dev/atomizer.io/montecarlopi)
6+
[![Go Reference](https://pkg.go.dev/badge/go.atomizer.io/montecarlopi.svg)](https://pkg.go.dev/go.atomizer.io/montecarlopi)
77
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
88
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
99

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
module atomizer.io/montecarlopi
1+
module go.atomizer.io/montecarlopi
22

33
go 1.16
44

55
require (
6-
atomizer.io/engine v1.0.4
7-
devnw.com/alog v1.0.6
8-
github.com/google/uuid v1.2.0
6+
github.com/google/uuid v1.3.0
7+
go.atomizer.io/engine v1.0.5
8+
go.devnw.com/alog v1.1.1
99
)

go.sum

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
atomizer.io/engine v1.0.4 h1:X5rc/Sv//HaTKMDo9taLETnOuRGSmpMy6mYg2TdjGVg=
2-
atomizer.io/engine v1.0.4/go.mod h1:IZX4SAOgqFmGhKDDHEHBZy7GW2Qzd1rk4XDHl2lDrfE=
3-
devnw.com/alog v1.0.6 h1:TI4kZ4ngOXeRPBJIoXclxKA9XuR9sdRDzXHEDW5bVfM=
4-
devnw.com/alog v1.0.6/go.mod h1:beJR4S7HRbotF4/Syc4lbJtbCJwHcTKo9lz9J0KDBd8=
5-
devnw.com/validator v1.0.4 h1:pSe5CoV9gPEjWDU0c0JUilY6m2+jCma8oI9HXYP2EYw=
6-
devnw.com/validator v1.0.4/go.mod h1:Z9GH0cjDxgmcAvpAh74ZRkmoB9OIroKFGboNa+Q3L3g=
71
github.com/Pallinder/go-randomdata v1.2.0 h1:DZ41wBchNRb/0GfsePLiSwb0PHZmT67XY00lCDlaYPg=
82
github.com/Pallinder/go-randomdata v1.2.0/go.mod h1:yHmJgulpD2Nfrm0cR9tI/+oAgRqCQQixsA8HyRZfV9Y=
93
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
104
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
11-
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
12-
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
13-
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
14-
github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs=
15-
github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
5+
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
6+
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
7+
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
8+
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
169
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw=
1710
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8=
1811
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
1912
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
13+
go.atomizer.io/engine v1.0.5 h1:5kbJBnkpHjjEa+N3l+O9RxcXfOFpW2fSuWh3+aCJGQ4=
14+
go.atomizer.io/engine v1.0.5/go.mod h1:YB44dvsT4P3JB1T0VhhuAkVw26c8gtUVuubnnsSYvNI=
15+
go.devnw.com/alog v1.1.1 h1:u+85qyAwvcm0t46brAI8/DNW1FhW+XV+2Xk9MCs621I=
16+
go.devnw.com/alog v1.1.1/go.mod h1:+C3sYPkWZKet8XEvZ7DCcmEa30QQ4BRl67UcGLywOXc=
17+
go.devnw.com/validator v1.0.8 h1:IUuu8o7WKZPf5WsiUWvdU7qwBZvWwKezpZQnXn2gX+k=
18+
go.devnw.com/validator v1.0.8/go.mod h1:5kfqytQCBGTupXx1ZoIfV97qvKtsAi6lt2HfmvjWa6A=
2019
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
2120
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
2221
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=

init.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
package montecarlopi
77

88
import (
9-
"atomizer.io/engine"
10-
"devnw.com/alog"
9+
"go.atomizer.io/engine"
10+
"go.devnw.com/alog"
1111
)
1212

1313
func init() {

0 commit comments

Comments
 (0)