Skip to content

Commit

Permalink
Merge pull request #40 from disha1202/#20k1511
Browse files Browse the repository at this point in the history
Added: pull request build check GitHub actions(#20k1511)
  • Loading branch information
adityasharma7 authored Feb 11, 2022
2 parents d07d6c4 + d959737 commit 40a276c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Verify build

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]


jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}


- name: Install Dependencies
run: npm install
- name: Generate .env file
run: cp .env.example .env
- name: Build
run: npm run build
6 changes: 6 additions & 0 deletions changelogs/unreleased/-20k1511.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 'Added: pull request build check'
ticket_id: "#20k1511"
merge_request: 40
author: Disha
type: added

0 comments on commit 40a276c

Please sign in to comment.