Skip to content

Commit

Permalink
change to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
orlyd committed Feb 22, 2024
1 parent e92718a commit 6239878
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
- run: npm run test
- run: yarn install
- run: yarn lint
- run: yarn test
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: documentation/package-lock.json
cache: yarn
cache-dependency-path: documentation/yarn.lock

- name: Install dependencies
working-directory: documentation
run: npm ci
run: yarn install --frozen-lockfile
- name: Build documentation
working-directory: documentation
run: npm run build
run: yarn build

- name: Setup EnhanceDocs
uses: enhancedocs/[email protected]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: documentation/package-lock.json
cache: yarn
cache-dependency-path: documentation/yarn.lock

- name: Install dependencies
working-directory: ./documentation
run: npm ci
run: yarn install --frozen-lockfile
- name: Test build documentation
working-directory: ./documentation
run: npm run build
run: yarn build
15 changes: 1 addition & 14 deletions eslint/undefinedDependencies/undefinedDependencies.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@ import { validGraphSimple } from './testUtils/validGraphs';
import { invalidGraph } from './invalidGraphs';
import { undefinedDependencies } from './ruleConfiguration';

// describe('createFunction', () => {
// let uut: (context: any) => any;

// beforeEach(() => {
// uut = create;
// });

// it('defines a create function', () => {
// expect(uut).toBeDefined();
// });
// });

const ruleTester = new RuleTester();

ruleTester.run('undefined-dependency', undefinedDependencies, {
Expand All @@ -25,12 +13,11 @@ ruleTester.run('undefined-dependency', undefinedDependencies, {
messageId: 'undefinedDependency',
}],
},
// ,
// {
// code: invalidGraphWithSubgraph,
// errors: [{
// messageId: 'undefinedDependency',
// }],
// }
// },
],
});

0 comments on commit 6239878

Please sign in to comment.