Skip to content

Commit

Permalink
Merge pull request actions#83 from akamai/action-to-check-package-lock-2
Browse files Browse the repository at this point in the history
action to validate package lock
  • Loading branch information
krzyk committed Feb 11, 2021
2 parents 1caea23 + bc61207 commit 3140e24
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/node.js.yml
Expand Up @@ -23,13 +23,21 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- run: |
grep resolved package-lock.json > result.txt
if grep -q akamai result.txt; then echo "package-lock.json contains invalid entries" ; exit 1; fi
shell: bash --noprofile --norc -x {0}
name: Validate package-lock.json file
- uses: actions/setup-node@v1
name: Node.js ${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present

- run: touch /tmp/test-edgerc
- run: ./akamai-sandbox --edgerc /tmp/test-edgerc help
name: Run sandbox command
env:
AKAMAI_CLI_CACHE_PATH: /tmp

0 comments on commit 3140e24

Please sign in to comment.