From 9f550a87d255d21f30e34870ab2f64ebf0124bb9 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 3 Sep 2022 11:35:46 -0700 Subject: [PATCH] Run workflows on PRs + Perform test build --- .github/workflows/chromatic.yml | 3 +++ .github/workflows/javascript-formatting.yml | 3 +++ .github/workflows/test-webapp-build.yaml | 28 +++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 .github/workflows/test-webapp-build.yaml diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 5fc8f4f82..8c49add8b 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -7,6 +7,9 @@ on: push: paths: - web/** + pull_request: + paths: + - web/** # List of jobs jobs: diff --git a/.github/workflows/javascript-formatting.yml b/.github/workflows/javascript-formatting.yml index 40d4ac555..593eadbcb 100644 --- a/.github/workflows/javascript-formatting.yml +++ b/.github/workflows/javascript-formatting.yml @@ -5,6 +5,9 @@ on: push: paths: - web/** + pull_request: + paths: + - web/** jobs: prettier: diff --git a/.github/workflows/test-webapp-build.yaml b/.github/workflows/test-webapp-build.yaml new file mode 100644 index 000000000..393c06e43 --- /dev/null +++ b/.github/workflows/test-webapp-build.yaml @@ -0,0 +1,28 @@ +name: Webapp Test Build + +# This action works with pull requests and pushes +on: + push: + paths: + - web/** + pull_request: + paths: + - web/** + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./web + + name: Build webapp + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Dependencies + run: npm install + + - name: Build + run: npm run build