updates for new version of act
This commit is contained in:
parent
c3c8022de1
commit
84b1acafa0
|
@ -0,0 +1,4 @@
|
|||
name: 'jshint'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
|
@ -0,0 +1,19 @@
|
|||
name: test-and-deploy
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:11.6.0
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
- uses: ./.github/workflows/jshint
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
steps:
|
||||
- run: env
|
|
@ -2,12 +2,12 @@
|
|||
Simple Node.js application to demonstrate the use of GitHub Actions
|
||||
|
||||
# Look Ma, no Makefile!
|
||||
All the tasks necessary for testing, building and deploying this code is already defined in `.github/main.workflow` so why would you want to also create a `Makefile` for local development? Now you can use [act](https://github.com/nektos/act) to run the actions locally!
|
||||
All the tasks necessary for testing, building and deploying this code is already defined in `.github/workflows/` so why would you want to also create a `Makefile` for local development? Now you can use [act](https://github.com/nektos/act) to run the actions locally!
|
||||
|
||||
Try these:
|
||||
|
||||
* `act -a lint` - run the linter
|
||||
* `act -a test` - run the tests
|
||||
* `act -j lint` - run the linter
|
||||
* `act -j test` - run the tests
|
||||
* `act` - run the the entire pipeline
|
||||
* `act -l` - view the execution graph
|
||||
|
||||
|
|
Loading…
Reference in New Issue