Skip to content

Commit

Permalink
TASK: Run codestyle and JS unittests on Github
Browse files Browse the repository at this point in the history
With this change these actions are not being run with Circle CI anymore.
  • Loading branch information
Sebobo committed Feb 7, 2023
1 parent b4e659d commit 24bd6fc
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,6 @@ jobs:
- save_cache: *store_yarn_package_cache
- persist_to_workspace: *persist_to_workspace

codestyle:
working_directory: *workspace_root
docker:
- image: cimg/node:14.18-browsers
steps:
- attach_workspace: *attach_workspace
- run: make lint

unittests:
working_directory: *workspace_root
docker:
- image: cimg/node:14.18-browsers
steps:
- attach_workspace: *attach_workspace
- run: make test

build_flow_app:
working_directory: *workspace_root
environment:
Expand Down Expand Up @@ -166,12 +150,6 @@ workflows:
- build_flow_app:
requires:
- checkout
- codestyle:
requires:
- checkout
- unittests:
requires:
- checkout
- e2e:
requires:
- build_flow_app
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and test

on: push

jobs:
codestyle:
runs-on: ubuntu-latest
name: 'Code style'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'yarn'
- name: Install
run: make install
- name: Lint
run: make lint

unittests:
runs-on: ubuntu-latest
name: 'Unit tests'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'yarn'
- name: Install
run: make install
- name: Build
run: make build-production
- name: Test
run: make test

0 comments on commit 24bd6fc

Please sign in to comment.