diff --git a/.circleci/config.yml b/.circleci/config.yml index b21bf9045..d77b16911 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -91,32 +91,9 @@ jobs: . virtualenv/bin/activate tox - frontend: - docker: - - image: cimg/node:18.12 - steps: - - checkout - - run: - name: Resolve dependency - command: | - npm install - - run: - name: lint - command: | - npm run lint - - run: - name: build - command: | - npm run build:development - - run: - name: test - command: | - npm run test:ci - workflows: version: 2 build_and_test: jobs: - python38 - - staticchecks - - frontend \ No newline at end of file + - staticchecks \ No newline at end of file diff --git a/.github/workflows/build-frontend.yml b/.github/workflows/build-frontend.yml new file mode 100644 index 000000000..a20d2bbc3 --- /dev/null +++ b/.github/workflows/build-frontend.yml @@ -0,0 +1,49 @@ +name: Build frontend + +on: + push: + branches: + - master + pull_request: + paths: + - 'frontend/**/*.ts' + - 'frontend/**/*.tsx' + - '.github/workflows/build-frontend.yml' + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'npm' + - name: install dependencies + run: npm ci + - name: lint + run: npm run lint + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'npm' + - name: install dependencies + run: npm ci + - name: build + run: npm run build:development + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'npm' + - name: install dependencies + run: npm ci + - name: test + run: npm run test diff --git a/package.json b/package.json index f826820f7..ecee1b605 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ "lint": "npx eslint frontend && npx prettier --check frontend", "fix": "npx eslint --fix frontend ; npx prettier --write frontend", "test": "TZ=UTC npx jest frontend", - "test:ci": "TZ=UTC npx jest frontend --runInBand", "test:update": "TZ=UTC npx jest -u frontend" }, "repository": {