Skip to content

Update build-test.yml #7

Update build-test.yml

Update build-test.yml #7

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Build Docker image
run: docker build -t my-node-app .
- name: Test Docker image
run: docker run my-node-app npm test