Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/scripts/verify-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# Check if build output at dist is uptodate or not

# Check files updated in working dir
git status dist -s

# Raise error if more than 1 files changed in working dir
if [[ ! -z $(git status dist -s) ]]; then
echo "Build at dist is outdated. Update build, push and try again."
exit 1
fi
28 changes: 28 additions & 0 deletions .github/workflows/feature-branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Feature Branch

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 12

- name: Install dependencies
run: npm install

- name: Build package
run: npm run build

- name: Verify build
run: .github/scripts/verify-build.sh