22
.github/workflows/deploy.yml
vendored
Normal file
22
.github/workflows/deploy.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
name: Continuous Deployment
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@main
|
||||||
|
- uses: actions/setup-node@main
|
||||||
|
with:
|
||||||
|
node-version: 12
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
cd functions && npm ci
|
||||||
|
|
||||||
|
- name: Firebase deploy
|
||||||
|
run: npm run build && firebase deploy
|
21
.github/workflows/integrate.yml
vendored
21
.github/workflows/integrate.yml
vendored
@ -2,7 +2,7 @@ name: Continuous Integration
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test_pull_request:
|
test_pull_request:
|
||||||
@ -11,9 +11,16 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 16
|
||||||
- run: npm ci
|
|
||||||
- run: cd functions && npm ci
|
- name: Install dependencies
|
||||||
- run: npm run test
|
run: |
|
||||||
- run: cd ..
|
npm ci
|
||||||
- run: npm run build
|
cd functions && npm ci
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: npm run test
|
||||||
|
working-directory: ./functions
|
||||||
|
|
||||||
|
- name: Build environment
|
||||||
|
run: npm run build
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -63,5 +63,4 @@ node_modules/
|
|||||||
.yarn-integrity
|
.yarn-integrity
|
||||||
|
|
||||||
# dotenv environment variables file
|
# dotenv environment variables file
|
||||||
.env
|
.env
|
||||||
firebase.js
|
|
@ -15,9 +15,6 @@ You will need to click the "Populate Database" and "Fetch Data" buttons to get d
|
|||||||
To kill the npm process do `CTRL + C` in your terminal.
|
To kill the npm process do `CTRL + C` in your terminal.
|
||||||
To kill the firebase emulators run `fg` to bring the process to the foreground, then do `CTRL + C`
|
To kill the firebase emulators run `fg` to bring the process to the foreground, then do `CTRL + C`
|
||||||
|
|
||||||
# Committing
|
|
||||||
Make sure that you exclude the Firebase API key from any commits!
|
|
||||||
|
|
||||||
# Links
|
# Links
|
||||||
Main site: [irishrailtracker.web.app](https://irishrailtracker.web.app/)
|
Main site: [irishrailtracker.web.app](https://irishrailtracker.web.app/)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user