diff --git a/.github/workflows/react.yml b/.github/workflows/react.yml new file mode 100644 index 0000000000..20af1bf24b --- /dev/null +++ b/.github/workflows/react.yml @@ -0,0 +1,34 @@ +name: React CI + +on: + push: + branches: [master, main, develop] + pull_request: + branches: [master, main, develop] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.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: | + cd decide/administration/frontend && + npm install + - name: Build app + run: | + cd decide/administration/frontend && + npm run build --if-present + - name: Test app + run: | + cd decide/administration/frontend && + npm run test