Skip to content

Commit

Permalink
build: refactor circleci script to github actions (celo-org#167)
Browse files Browse the repository at this point in the history
* build: refactor circleci script to github actions

* build: check licenses no longer needed

* build: add name to workflow

* refactor: update script

* test: test that ci fails

* test: check that test fails

* test: workflow works as expected
  • Loading branch information
ninabarbakadze authored Apr 12, 2023
1 parent 3a0c02f commit 942ab9f
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CI"

on:
workflow_dispatch:
pull_request:
branches:
- "main"
- "feature/**"
push:
branches:
- "main"

jobs:
ci:
name: Build & Test
runs-on: ubuntu-latest

steps:
- name: "Check out the repo"
uses: "actions/checkout@v3"

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 12

- name: Install dependencies
run: "yarn install --immutable"

- name: Build packages
run: yarn build

- name: Run lint checks
run: |
yarn run prettify:diff
yarn run lint
yarn run lint:tests
- name: Run tests
run: yarn run test --maxWorkers 2

0 comments on commit 942ab9f

Please sign in to comment.