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

chore: use GH actions #1768

Merged
merged 25 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
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
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@v3
hugoArregui marked this conversation as resolved.
Show resolved Hide resolved
- name: Use Node.js 18.x
uses: actions/setup-node@v3
hugoArregui marked this conversation as resolved.
Show resolved Hide resolved
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@v3
hugoArregui marked this conversation as resolved.
Show resolved Hide resolved
- name: Use Node.js 16.16.0
uses: actions/setup-node@v3
hugoArregui marked this conversation as resolved.
Show resolved Hide resolved
with:
node-version: 16.16.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this work with node 18?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't

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
Loading