Skip to content

Commit

Permalink
Merge branch 'feature/eslint-config' of https://github.com/gsoft-inc/…
Browse files Browse the repository at this point in the history
…sg-orbit into feature/eslint-config
  • Loading branch information
alexasselin008 committed Sep 26, 2023
2 parents a6f93f8 + 79104f6 commit 3d78590
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 62 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Cache yarn dependencies
uses: actions/cache@v3
id: cache-dependencies
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.ox }}-yarn-
cache: "yarn"
- name: Install Dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
yarn install --frozen-lockfile
run: yarn install --frozen-lockfile
- name: Build Packages
run: yarn build
- name: Publish to Chromatic
Expand All @@ -40,4 +31,4 @@ jobs:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: build-sb-chroma


56 changes: 6 additions & 50 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,89 +14,45 @@ concurrency:
cancel-in-progress: true

jobs:
install-cache:
name: "Install Dependencies"
runs-on: ubuntu-latest
steps:
- name: Checkout Commit
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Cache yarn dependencies
uses: actions/cache@v3
id: cache-dependencies
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.ox }}-yarn-
- name: Install Dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
yarn install --frozen-lockfile
eslint:
name: "Eslint"
runs-on: ubuntu-latest
needs: install-cache
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Restore yarn dependencies
uses: actions/cache@v3
id: cache-dependencies
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.ox }}-yarn-
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint Eslint
run: yarn lint-ci-eslint

stylelint:
name: "Stylelint"
runs-on: ubuntu-latest
needs: install-cache
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Restore yarn dependencies
uses: actions/cache@v3
id: cache-dependencies
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.ox }}-yarn-
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint Stylelint
run: yarn lint-ci-style

build_and_tests:
name: "Build and Tests"
runs-on: ubuntu-latest
needs: install-cache
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Restore yarn dependencies
uses: actions/cache@v3
id: cache-dependencies
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.ox }}-yarn-
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build Packages
run: yarn build
- name: Run Jest
Expand Down

0 comments on commit 3d78590

Please sign in to comment.