Prytaneum Improvements #419
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Server build, lint, and test | |
on: | |
pull_request: | |
branches: | |
- staging | |
paths: | |
- 'app/server/**' | |
- 'docker/Dockerfile.server' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
environment: development | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Yarn Install | |
run: yarn install | |
# Build the server via docker so we are as close to the real build as possible. | |
- name: Docker build | |
run: |- | |
docker build \ | |
-f ./docker/Dockerfile.server \ | |
--build-arg GITHUB_SHA="$GITHUB_SHA" \ | |
--build-arg GITHUB_REF="$GITHUB_REF" \ | |
--build-arg GRAPHQL_URL="123" \ | |
--build-arg DEPLOYMENT_ENV="development" \ | |
--build-arg GOOGLE_ANALYTICS_ID="123" \ | |
. | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
environment: development | |
steps: | |
- name: Setup | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Yarn Install | |
run: yarn install | |
- name: Test Project | |
run: yarn workspace @app/server test:ci | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
environment: development | |
steps: | |
- name: Setup | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Yarn Install | |
run: yarn install | |
- name: Lint Project | |
run: yarn workspace @app/server lint |