Skip to content

Commit

Permalink
chore: use GH actions (#1768)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoArregui authored Apr 25, 2024
1 parent 0e45022 commit 273e475
Show file tree
Hide file tree
Showing 9 changed files with 122 additions and 368 deletions.
309 changes: 0 additions & 309 deletions .circleci/config.yml

This file was deleted.

71 changes: 71 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: build

on:
push:
branches:
- 'main'
pull_request:

jobs:
validations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: yarn
- name: install
run: yarn install --frozen-lockfile
- name: build
run: yarn build
- name: lint
run: yarn lint:check

test-content:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_DB: postgres_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 12345678
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Use Node.js 16.16.0
uses: actions/setup-node@v4
with:
node-version: 16.16.0
cache: yarn
- name: install
run: yarn install --frozen-lockfile
- name: create .env
run: echo "" >> .env
- name: test
run: yarn test:content


test-lambdas:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.16.0
uses: actions/setup-node@v3
with:
node-version: 16.16.0
cache: yarn
- name: install
run: yarn install --frozen-lockfile
- name: create .env
run: echo "" >> .env
- name: test
run: yarn test:lambdas
13 changes: 13 additions & 0 deletions .github/workflows/docker-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: CI/CD on main branch

on:
push:
branches:
- "main"

jobs:
cd:
uses: decentraland/platform-actions/.github/workflows/apps-docker-next.yml@main
with:
service-name: catalyst
secrets: inherit
Loading

0 comments on commit 273e475

Please sign in to comment.