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

Test #21

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Test #21

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
26 changes: 26 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy # Renamed the name at the top to "Deploy"

on:
push: # Triggers the workflow on every push to the repository

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 }}
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
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.