Skip to content

Commit f9c4e62

Browse files
authored
Merge pull request #1 from eksrvb/feature/github-actions
Feature/GitHub actions
2 parents 8a23a6a + a193074 commit f9c4e62

File tree

9 files changed

+65
-32
lines changed

9 files changed

+65
-32
lines changed

.examples/GitHub_Actions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
## Installing Awesome-CI in GitHub Actions
1+
## Installing Awesome-CI in GitHub Actions
2+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212

1313
-
1414

15-
## Testing
16-
17-
1.
18-
19-
## Screenshots
20-
21-
2215
## Notes
2316

2417
-
@@ -32,7 +25,6 @@
3225
- [ ] PR has an informative and human-readable title
3326
- [ ] Changes are limited to a single goal (no scope creep)
3427
- [ ] Code can be automatically merged (no conflicts)
35-
- [ ] Code follows the standards laid out in the [development playbook](https://github.com/cfpb/development)
3628
- [ ] Passes all existing automated tests
3729
- [ ] Any _change_ in functionality is tested
3830
- [ ] New functions are documented (with a description, list of inputs, and expected output)
@@ -41,27 +33,11 @@
4133
- [ ] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
4234
- [ ] Reviewers requested with the [Reviewers tool](https://help.github.com/articles/requesting-a-pull-request-review/) :arrow_right:
4335

44-
## Testing checklist
45-
46-
### Browsers
47-
48-
- [ ] Chrome
49-
- [ ] Firefox
50-
- [ ] Safari
51-
- [ ] Internet Explorer 8, 9, 10, and 11
52-
- [ ] Edge
53-
- [ ] iOS Safari
54-
- [ ] Chrome for Android
55-
5636
### Accessibility
5737

5838
- [ ] Keyboard friendly
5939
- [ ] Screen reader friendly
6040

6141
### Other
6242

63-
- [ ] Is useable without CSS
64-
- [ ] Is useable without JS
65-
- [ ] Flexible from small to large screens
6643
- [ ] No linting errors or warnings
67-
- [ ] JavaScript tests are passing

.github/workflows/Release.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish Release
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
paths-ignore:
8+
- 'README.md'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: 1.15
20+
- name: Build
21+
run: go build -v
22+
- name: Upload a Build Artifact
23+
uses: actions/[email protected]
24+
with:
25+
path: awesome-ci
26+
- name: Create Release
27+
run: ./assets/awesome-ci-semver createRelease
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/branchPR.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build PR
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- "master"
7+
pull_request:
8+
paths-ignore:
9+
- 'README.md'
10+
types: [assigned, opened, synchronize, reopened, edited]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
- name: Set up Go
19+
uses: actions/setup-go@v2
20+
with:
21+
go-version: 1.15
22+
- name: Build
23+
run: go build -v
24+
- name: Upload a Build Artifact
25+
uses: actions/[email protected]
26+
with:
27+
path: awesome-ci

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PROJECT_NAME := "awesome-ci-semver"
1+
PROJECT_NAME := "awesome-ci"
22
PKG := "$(PROJECT_NAME)"
33
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/)
44
GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/ | grep -v _test.go)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module awesome-ci-semver
1+
module awesome-ci
22

33
go 1.15
44

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"awesome-ci-semver/service"
4+
"awesome-ci/service"
55
"flag"
66
"os"
77
)

service/createRelease.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package service
22

33
import (
4-
"awesome-ci-semver/gitcontroller"
5-
"awesome-ci-semver/semver"
4+
"awesome-ci/gitcontroller"
5+
"awesome-ci/semver"
66
"encoding/json"
77
"fmt"
88
"io/ioutil"

service/getBuildInfos.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package service
22

33
import (
4-
"awesome-ci-semver/gitcontroller"
5-
"awesome-ci-semver/semver"
4+
"awesome-ci/gitcontroller"
5+
"awesome-ci/semver"
66
"log"
77
"os"
88
"regexp"

0 commit comments

Comments
 (0)