diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..e6bacfd --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -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 \ No newline at end of file diff --git a/changelogs/unreleased/-20k1511.yml b/changelogs/unreleased/-20k1511.yml new file mode 100644 index 0000000..08d199c --- /dev/null +++ b/changelogs/unreleased/-20k1511.yml @@ -0,0 +1,6 @@ +--- +title: 'Added: pull request build check' +ticket_id: "#20k1511" +merge_request: 40 +author: Disha +type: added