Skip to content

Commit

Permalink
Add parser and WebExample to yarn workspace (#278)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomek Zawadzki <[email protected]>
  • Loading branch information
BartoszGrajdek and tomekzaw authored Apr 12, 2024
1 parent 512cb89 commit c9a1365
Show file tree
Hide file tree
Showing 10 changed files with 6,418 additions and 25,531 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
- name: Install node_modules
run: yarn install --immutable

- name: Install WebExample node_modules
working-directory: WebExample
run: npm ci

- name: Build app
working-directory: WebExample
run: npx expo export:web
12 changes: 2 additions & 10 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,13 @@ jobs:
- name: Install node_modules
run: yarn install --immutable

- name: Install parser node_modules
working-directory: parser
run: npm ci

- name: Install WebExample node_modules
working-directory: WebExample
run: npm ci

- name: Verify there's no parser diff
working-directory: parser
run: |
npm run build
yarn build
if ! git diff --name-only --exit-code; then
# shellcheck disable=SC2016
echo 'Error: Parser diff detected! Please run `cd parser && npm run build` and commit the changes.'
echo 'Error: Parser diff detected! Please run `cd parser && yarn build` and commit the changes.'
exit 1
fi
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,14 @@ jobs:
with:
node-version: "16.x"

- name: Setup web example
run: npm ci
working-directory: ./WebExample

- run: yarn install --immutable

- name: Install node_modules
run: yarn install --immutable

- name: Verify there's no Prettier diff
run: |
yarn lint --fix --quiet
if ! git diff --name-only --exit-code; then
# shellcheck disable=SC2016
echo 'Error: Prettier diff detected! Please run `npm run prettier` and commit the changes.'
echo 'Error: Prettier diff detected! Please run `yarn lint --fix` and commit the changes.'
exit 1
fi
Loading

0 comments on commit c9a1365

Please sign in to comment.