Merge pull request #250 from HatsuneMiku3939/dependabot/npm_and_yarn/… #347
This file contains 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: "units-test" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- main | |
- 'releases/*' | |
jobs: | |
# unit tests | |
units: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm test | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm run prepare | |
- uses: ./ | |
with: | |
masks: SECRET1, SECRET2 | |
direnvVersion: 2.32.3 | |
- run: printenv | grep DIRENV_ACTION_TEST | |
- run: echo $PATH | grep $(pwd)/bin | |
- run: printenv | |
test-default-option: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm run prepare | |
- uses: ./ | |
- run: printenv | grep DIRENV_ACTION_TEST | |
- run: echo $PATH | grep $(pwd)/bin | |
- run: printenv |