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