Skip to content

chore: fix ecr push only on main branch #11

chore: fix ecr push only on main branch

chore: fix ecr push only on main branch #11

Workflow file for this run

name: Test
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: check dependency cache
uses: actions/cache@v3
id: npm-cache
with:
path: ${{ github.workspace }}/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: install dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm install
- name: Run Test
run: npm run test