Fix get transactions from redis #33
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: Test and Deploy | |
on: | |
push: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
if: ${{ false }} | |
env: | |
PORT: 3000 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Create env | |
run: | | |
cat << EOF > .env.test | |
PORT=3000 | |
ENV=TEST | |
DATABASE_URL=postgres://postgres:postgres@postgres/expenses-test | |
REDIS_URL=redis://redis:6379 | |
SESSION_SECRET=test | |
EOF | |
- name: Run docker | |
run: | | |
docker compose -f docker-compose.test.yml up \ | |
--abort-on-container-exit \ | |
--exit-code-from expenses | |
build_and_deploy: | |
# needs: [test] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node 18 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18.x | |
- name: Install packages | |
run: yarn install --frozen-lockfile | |
- name: Install Railway | |
run: npm i -g @railway/cli | |
- name: Deploy | |
run: railway up --service expenses-project | |
env: | |
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} |