Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new build file #15

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy
on:
push:
branches: [ main ]
jobs:

build:
name: Build and Deploy

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: use Node 16
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install Railway
run: npm i -g @railway/cli
- name: Deploy
run: railway up
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}


#installed dependency
# rm -rf node_modules package-lock.json
# npm cache clean --force
# npm install
#done


22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test
on:
pull_request:
branches: [ main ]
# top-level call-out of the different tasks within the workflow
jobs:
# job id
test:
name: Test
runs-on: ubuntu-latest

# list of steps to complete in the workflow, in order
steps:
# extend from these published, pre-configured actions
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
# the node version for the setup-node action
node-version: 16.x
# Install packages and run tests
- run: npm ci
- run: npm test
Loading