-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: test | ||
|
||
on: | ||
pull_request: | ||
branches: master | ||
push: | ||
branches: master | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
# https://github.com/actions/checkout | ||
name: Checkout | ||
uses: actions/checkout@v1 | ||
- | ||
name: Install | ||
run: npm ci | ||
- | ||
name: Build | ||
run: npm run build | ||
- | ||
name: Test | ||
run: npm run test | ||
- | ||
name: Check for uncommitted changes | ||
# Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed. | ||
run: | | ||
git diff --exit-code --stat -- . ':!node_modules' \ | ||
|| (echo "##[error] found changed files after build. please 'npm run build && npm run format'" \ | ||
"and check in all changes" \ | ||
&& exit 1) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/.dev | ||
/dist | ||
|
||
# Jetbrains | ||
/.idea | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import fs = require('fs'); | ||
import * as installer from '../src/installer'; | ||
|
||
describe('installer', () => { | ||
it('acquires v0.117.0 version of GoReleaser', async () => { | ||
const goreleaser = await installer.getGoReleaser('v0.117.0'); | ||
expect(fs.existsSync(goreleaser)).toBe(true); | ||
}, 100000); | ||
|
||
it('acquires latest version of GoReleaser', async () => { | ||
const goreleaser = await installer.getGoReleaser('latest'); | ||
expect(fs.existsSync(goreleaser)).toBe(true); | ||
}, 100000); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module github.com/crazy-max/ghaction-goreleaser | ||
|
||
go 1.12 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
clearMocks: true, | ||
moduleFileExtensions: ['js', 'ts'], | ||
testEnvironment: 'node', | ||
testMatch: ['**/*.test.ts'], | ||
testRunner: 'jest-circus/runner', | ||
transform: { | ||
'^.+\\.ts$': 'ts-jest' | ||
}, | ||
verbose: true | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.