Skip to content

Commit

Permalink
Migrate to GitHub Actions from CircleCI (#4143)
Browse files Browse the repository at this point in the history
* Add initial cicd.yml for gh actions

* Add version and run on PR

* Trying to fix the node lts error on setup job

* Trying to fix the pwd for yarn.lock

* Remove pwd from cicd

* Use only setup jon for now

* Add path for cache

* Add lint and build job

* Fix dir issue with lint and build

* Forget about cache for now

* Make changes as per cortinico's comments

* Trying to fix the pwd for lint and build

* Run yarn on different dir

* Add working-directory

* Move the setup step into lint and build job

* Remove setup job as not needed
  • Loading branch information
apicgg authored Jun 12, 2024
1 parent 2fe04a5 commit c8ad765
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/pre-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Pre-merge

on:
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v4

- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: yarn install --frozen-lockfile --no-progress --non-interactive

- name: Run Lint
run: yarn ci:lint
working-directory: website

build:
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v4

- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: yarn install --frozen-lockfile --no-progress --non-interactive

- name: Build
run: yarn build
working-directory: website
env:
NODE_OPTIONS: "--max_old_space_size=4096"

0 comments on commit c8ad765

Please sign in to comment.