chore: add workflow to test web server build (#1226)
This commit is contained in:
20
.github/workflows/webserver.pr.yml
vendored
Normal file
20
.github/workflows/webserver.pr.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
name: Web Server PR
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- 'packages/web-server/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
TestDockerBuild:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
- name: Copy default configuration
|
||||||
|
run: yarn workspace @standardnotes/web-server run sample:env
|
||||||
|
- name: Test build of the image
|
||||||
|
run: docker build -t standardnotes/web:test-build .
|
||||||
@@ -12,7 +12,8 @@
|
|||||||
"start": "bundle exec rails s -b 0.0.0.0",
|
"start": "bundle exec rails s -b 0.0.0.0",
|
||||||
"start:no-binding": "bundle exec rails s",
|
"start:no-binding": "bundle exec rails s",
|
||||||
"copy:components": "cp -r ../../node_modules/@standardnotes/components-meta/dist/assets/. public/components/assets/",
|
"copy:components": "cp -r ../../node_modules/@standardnotes/components-meta/dist/assets/. public/components/assets/",
|
||||||
"build": "bundle install && yarn copy:components && bundle exec rails assets:precompile"
|
"build": "bundle install && yarn copy:components && bundle exec rails assets:precompile",
|
||||||
|
"sample:env": "cp .env.sample .env"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@standardnotes/components-meta": "workspace:*",
|
"@standardnotes/components-meta": "workspace:*",
|
||||||
|
|||||||
Reference in New Issue
Block a user