updating ci.yml for using secrets #8
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: CI Testing | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
run-ci-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: create env file | |
run: | | |
touch .env | |
echo ENGINE_API_KEY=${{ secrets.ENGINE_API_KEY }} >> .env | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Run Tests | |
run: pnpm test |