Skip to content

Commit c38c493

Browse files
committed
first commit
0 parents  commit c38c493

File tree

192 files changed

+21489
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+21489
-0
lines changed

.github/go-actions.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "variant",
5+
"pattern": [
6+
{
7+
"regexp": "^([^:]*: )?((.:)?[^:]*):(\\d+)(:(\\d+))?: (.*)$",
8+
"file": 2,
9+
"line": 4,
10+
"column": 6,
11+
"message": 7
12+
}
13+
]
14+
}
15+
]
16+
}

.github/workflows/workflow.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Main workflow
2+
on: [push]
3+
jobs:
4+
run:
5+
name: Run
6+
runs-on: ${{ matrix.operating-system }}
7+
strategy:
8+
matrix:
9+
operating-system: [ubuntu-latest, windows-latest]
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@master
13+
14+
- name: Set Node.js 10.x
15+
uses: actions/setup-node@master
16+
with:
17+
version: 10.x
18+
19+
- name: npm install
20+
run: npm install
21+
22+
- name: Lint
23+
run: npm run format-check
24+
25+
- name: npm test
26+
run: npm test

.gitignore

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Explicitly not ignoring node_modules so that they are included in package downloaded by runner
2+
!node_modules/
3+
__tests__/runner/*
4+
5+
# Rest of the file pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
lerna-debug.log*
13+
14+
# Diagnostic reports (https://nodejs.org/api/report.html)
15+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
16+
17+
# Runtime data
18+
pids
19+
*.pid
20+
*.seed
21+
*.pid.lock
22+
23+
# Directory for instrumented libs generated by jscoverage/JSCover
24+
lib-cov
25+
26+
# Coverage directory used by tools like istanbul
27+
coverage
28+
*.lcov
29+
30+
# nyc test coverage
31+
.nyc_output
32+
33+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
34+
.grunt
35+
36+
# Bower dependency directory (https://bower.io/)
37+
bower_components
38+
39+
# node-waf configuration
40+
.lock-wscript
41+
42+
# Compiled binary addons (https://nodejs.org/api/addons.html)
43+
build/Release
44+
45+
# Dependency directories
46+
jspm_packages/
47+
48+
# TypeScript v1 declaration files
49+
typings/
50+
51+
# TypeScript cache
52+
*.tsbuildinfo
53+
54+
# Optional npm cache directory
55+
.npm
56+
57+
# Optional eslint cache
58+
.eslintcache
59+
60+
# Optional REPL history
61+
.node_repl_history
62+
63+
# Output of 'npm pack'
64+
*.tgz
65+
66+
# Yarn Integrity file
67+
.yarn-integrity
68+
69+
# dotenv environment variables file
70+
.env
71+
.env.test
72+
73+
# parcel-bundler cache (https://parceljs.org/)
74+
.cache
75+
76+
# next.js build output
77+
.next
78+
79+
# nuxt.js build output
80+
.nuxt
81+
82+
# vuepress build output
83+
.vuepress/dist
84+
85+
# Serverless directories
86+
.serverless/
87+
88+
# FuseBox cache
89+
.fusebox/
90+
91+
# DynamoDB Local files
92+
.dynamodb/
93+
94+
# Editorws and IDEs
95+
*~
96+
.idea

.prettierrc.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"trailingComma": "none",
8+
"bracketSpacing": false,
9+
"arrowParens": "avoid",
10+
"parser": "typescript"
11+
}

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
The MIT License (MIT)
3+
4+
Copyright (c) 2019 Variant authors an contributors
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
THE SOFTWARE.

README.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# setup-go-actions
2+
3+
<p align="left">
4+
<a href="https://github.com/variantdev/setup-go-actions"><img alt="GitHub Actions status" src="https://github.com/variantdev/setup-go-actions/workflows/Main%20workflow/badge.svg"></a>
5+
</p>
6+
7+
This action sets up a [`go-actions`](https://github.com/variantdev/go-actions) environment for use in GitHub Actions by:
8+
9+
- optionally downloading and caching a version of `go-actions` by version and adding to PATH
10+
- registering problem matchers for error output
11+
12+
# Usage
13+
14+
See [action.yml](action.yml)
15+
16+
Basic:
17+
```yaml
18+
steps:
19+
- uses: actions/checkout@master
20+
- uses: variantdev/setup-go-actions@v1
21+
with:
22+
go-actions-version: '0.5.0' # The actions version to download (if necessary) and use.
23+
- run: actions -help
24+
```
25+
26+
# License
27+
28+
The scripts and documentation in this project are released under the [MIT License](LICENSE)
29+
30+
# Contributions
31+
32+
Contributions are welcome! See [Contributor's Guide](docs/contributors.md)

0 commit comments

Comments
 (0)