Skip to content

Commit

Permalink
first tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattallty committed Apr 20, 2020
1 parent 96737e8 commit 4ef45d8
Show file tree
Hide file tree
Showing 14 changed files with 31,771 additions and 272 deletions.
32 changes: 16 additions & 16 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
}
}
"env": {
"commonjs": true,
"es6": true,
"node": true,
"jest": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {}
}
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ on:
push:
branches:
- master
- 'releases/*'
- "releases/*"

jobs:
# unit tests
units:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: npm ci
- run: npm test
- uses: actions/checkout@v1
- run: npm ci
- run: npm test

# test action works running from the graph
# test action works running from the graph
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./
with:
milliseconds: 1000
- uses: actions/checkout@v1
- uses: ./
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 GitHub Actions
Copyright (c) 2019 Matthias Etienne <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 12 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: 'Wait'
description: 'Wait a designated number of milliseconds'
name: "jest-github-action"
description: "Jest action adding checks to your pull requests"
inputs:
milliseconds: # id of input
description: 'number of milliseconds to wait'
github-token:
description: "Your Github token"
required: true
default: '1000'
test-command:
description: "The test command to run"
required: false
default: "npm test"
outputs:
time: # output will be available to future steps
description: 'The message to output'
time: # output will be available to future steps
description: "The message to output"
runs:
using: 'node12'
main: 'dist/index.js'
using: "node12"
main: "dist/index.js"
Loading

0 comments on commit 4ef45d8

Please sign in to comment.