mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-15 09:14:19 +07:00
Add CodeQL workflow
Update README Update Node.js workflow Fix tests
This commit is contained in:
17
.github/workflows/node-workflow.yml
vendored
17
.github/workflows/node-workflow.yml
vendored
@ -24,10 +24,10 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Node.js 15.x
|
||||
- name: Setup Node.js 16.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 15.x
|
||||
node-version: 16.x
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
@ -41,7 +41,14 @@ jobs:
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
|
||||
- name: Run npm audit
|
||||
run: npm audit
|
||||
|
||||
- name: Send Coverage
|
||||
continue-on-error: true
|
||||
timeout-minutes: 1
|
||||
run: curl -s https://codecov.io/bash | bash -s -- -t ${{secrets.CODECOV_TOKEN}} -f coverage/lcov.info -n github-actions-codecov-${{ matrix.operating-system }}
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: coverage/lcov.info
|
||||
name: github-actions-codecov-${{ matrix.operating-system }}
|
||||
fail_ci_if_error: false
|
||||
verbose: true
|
||||
|
Reference in New Issue
Block a user