Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] feat: updated workflow files to use checkout@v2 #663

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/benchmark.yml
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
# Checkout the npm/cli repo
- uses: actions/checkout@v1.1.0
- uses: actions/checkout@v2

# Installs the specific version of nodejs
- name: Use nodejs 12.x
Expand All @@ -30,7 +30,9 @@ jobs:
env:
DISPATCH_REPO: "benchmarks"
DISPATCH_OWNER: "npm"
GITHUB_CONTEXT_EVENT: ${{ toJson(github.event) }}
run: |
echo "${GITHUB_CONTEXT_EVENT}"
curl \
-s \
-X POST https://api.github.com/repos/${DISPATCH_OWNER}/${DISPATCH_REPO}/dispatches \
Expand Down
55 changes: 27 additions & 28 deletions .github/workflows/ci.yml
Expand Up @@ -13,31 +13,30 @@ jobs:

steps:
# Checkout the npm/cli repo
- uses: actions/checkout@v1

# Installs the specific version of Node.js
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

# Run the installer script
- name: Install dependencies
run: node . install

# Run the tests
- name: Run Tap tests
run: node . run tap -- "test/tap/*.js" -t600 -Rclassic -c
env:
DEPLOY_VERSION: testing
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_OPTIONAL_TOKEN }}

# - name: Run sudo tests on Linux
# if: matrix.os == 'ubuntu-latest'
# run: sudo PATH=$PATH $(which node) . run tap -- "test/tap/*.js" --coverage --timeout 600

- name: Lint
run: npx standard

- name: Validate licenses
run: node . run licenses
- uses: actions/checkout@v2
# Installs the specific version of Node.js
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

# Run the installer script
- name: Install dependencies
run: node . install

# Run the tests
- name: Run Tap tests
run: node . run tap -- "test/tap/*.js" -t600 -Rclassic -c
env:
DEPLOY_VERSION: testing
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_OPTIONAL_TOKEN }}

# - name: Run sudo tests on Linux
# if: matrix.os == 'ubuntu-latest'
# run: sudo PATH=$PATH $(which node) . run tap -- "test/tap/*.js" --coverage --timeout 600

- name: Lint
run: npx standard

- name: Validate licenses
run: node . run licenses