chore: update action node version #32
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test | |
| on: [push] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Create test folder | |
| run: | | |
| mkdir test | |
| mkdir test2 | |
| - name: Create package.json with different versions | |
| run: | | |
| echo '{"name": "my-package", "version": "1.0.0","test": 1}' > test2/other_name.json | |
| echo '{"name": "my-package", "version": "1.0.0","test": 1}' > test2/other_name-lock.json | |
| echo '{"name": "my-package", "version": "1.2.0","test": 1}' > test/package.json | |
| echo '{"name": "my-package", "version": "1.2.0","test": 1}' > test/package-lock.json | |
| - name: simple without version | |
| uses: ./ | |
| id: simpleWithoutVersion | |
| with: | |
| packageJSON: test/package.json | |
| packageLockJSON: test/package-lock.json | |
| - name: diff without version | |
| uses: ./ | |
| id: diffWithoutVersion | |
| with: | |
| packageJSON: test2/other_name.json | |
| packageLockJSON: test2/other_name-lock.json | |
| - name: test | |
| if: steps.simpleWithoutVersion.outputs.cacheKey != steps.diffWithoutVersion.outputs.cacheKey | |
| run: | | |
| echo "Received different cache keys for lock files " | |
| echo ${{steps.simpleWithoutVersion.outputs.cacheKey}} ${{steps.diffWithoutVersion.outputs.cacheKey}} | |
| exit 1 |