Merge pull request #168 from torusresearch/resolve-cve #710
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
# This workflow will build and push a new container image to Amazon ECR | |
# | |
# To use this workflow, you will need to complete the following set-up steps: | |
# | |
# 1. Create an ECR repository to store your images. | |
# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`. | |
# Replace the value of `ECR_REPOSITORY` in the workflow below with your repository's name. | |
# Replace the value of `aws-region` in the workflow below with your repository's region. | |
on: push | |
name: Run Tests | |
jobs: | |
test: | |
name: run tests | |
strategy: | |
matrix: | |
node: ["20.x"] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Run tests | |
run: npm run test | |
env: | |
JWT_PRIVATE_KEY: ${{ secrets.JWT_PRIVATE_KEY }} |