neko/.github/workflows/pull_requests.yml

40 lines
815 B
YAML
Raw Normal View History

2022-07-15 10:29:57 +12:00
name: Build a Docker image
on:
pull_request:
branches:
- master
jobs:
build-server:
2022-07-15 10:29:57 +12:00
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:
2022-07-18 08:43:29 +12:00
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