name: Build a Docker image on: pull_request: branches: - master jobs: build-server: runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout repository uses: actions/checkout@v2 - name: Build Docker image uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc with: context: ./server build-client: runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout uses: actions/checkout@v2 - name: Setup Node uses: actions/setup-node@v2 with: node-version: '16.x' registry-url: 'https://registry.npmjs.org' - name: Install dependencies and build run: cd ./client && npm install && npm run build