Skip to content

Merge pull request #17 from sylhare/dependabot/npm_and_yarn/eslint-52… #39

Merge pull request #17 from sylhare/dependabot/npm_and_yarn/eslint-52…

Merge pull request #17 from sylhare/dependabot/npm_and_yarn/eslint-52… #39

Workflow file for this run

name: Project CICD
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Run lint
run: npm run lint
- name: Run test with coverage
run: npm run test:cov
- name: Run Build
run: npm run build
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Build docker image
run: docker build -t typescript-project .