Skip to content

Commit

Permalink
chore: consolidate workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ElMassimo committed Sep 25, 2024
1 parent 21fe373 commit 07b5290
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/crawl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: whatnick/wait-action@master
with:
time: '50s'
- uses: actions/checkout@v4
- uses: actions/checkout@v2
- run: 'sudo apt-get install -y jq'
- run: 'echo "CONFIG=$(cat docs/.algolia/config.json | jq -r tostring)" >> $GITHUB_ENV'
- run: "cd /root && pipenv install"
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/js.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: JS From Routes

on:
push:
Expand All @@ -9,8 +9,7 @@ on:
- '**'

jobs:
build:
name: build
rspec:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' || matrix.experimental }}
strategy:
Expand Down Expand Up @@ -61,3 +60,42 @@ jobs:
run: |
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}"
./cc-test-reporter after-build -r ${{secrets.CC_TEST_REPORTER_ID}}
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3.5"
bundler-cache: true

- name: Ruby linter
run: bundle exec standardrb

js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4.0.0
with:
version: 9.8.0

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'pnpm'

- run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

- name: Lint
run: pnpm lint

- name: Test
run: pnpm test
24 changes: 0 additions & 24 deletions .github/workflows/lint.yml

This file was deleted.

0 comments on commit 07b5290

Please sign in to comment.