Add env step to the build #24
Workflow file for this run
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: build | |
on: | |
push: | |
branches: [ master, dev ] | |
pull_request: | |
branches: [ master, dev ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm audit | |
continue-on-error: true | |
- run: npm run lint | |
- run: npm run package | |
- env: | |
TEST_BING_KEY: ${{ secrets.TEST_BING_KEY }} | |
BING_KEY: ${{ secrets.BING_KEY}} | |
run: | | |
touch .env | |
echo TEST_BING_KEY="$TEST_BING_KEY" >> .env | |
echo BING_KEY = "$BING_KEY" | |
echo TEST_BING_KEY = "$TEST_BING_KEY" | |
- run: npm run test | |
env: | |
CI: true |