Skip to content

Commit

Permalink
Merge pull request #45 from RohanMishra315/main
Browse files Browse the repository at this point in the history
Create build-test.yml
  • Loading branch information
jwafu authored Dec 24, 2023
2 parents 03efad2 + 4042b8b commit bd1e4ca
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
run: npm install

- name: Create test directory
run: mkdir test

- name: Create test file
run: echo "This is a test" > test/test.js

- name: Build project
run: npm run build -- --include=test

- name: Run tests
run: npm test

0 comments on commit bd1e4ca

Please sign in to comment.