Skip to content

Commit ed2beb0

Browse files
committed
Attempt 1 at creating workflows for tabs
1 parent 92e5c92 commit ed2beb0

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.github/workflows/workflow-again.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,32 @@ jobs:
4141
name: Do work with the tabs
4242
runs-on: ubuntu-latest
4343
needs: find-packages
44+
strategy:
45+
matrix:
46+
tabInfo: ${{ fromJson(needs.find-packages.outputs.tabs) }}
47+
4448
steps:
45-
- name: Just Echo
46-
run: echo ${{ needs.find-packages.outputs.bundles }}
49+
- name: Check out source code
50+
uses: actions/checkout@v4
51+
52+
- name: Enable Corepack
53+
run: corepack enable
54+
55+
- name: Use Node.js 💻
56+
uses: actions/setup-node@v4
57+
with:
58+
node-version-file: .node-version
59+
cache: yarn
60+
61+
- name: Install Dependencies
62+
run: yarn workspaces focus ${{ matrix.tabInfo.name }}
63+
64+
- name: Build Tab
65+
run: yarn workspaces foreach -A --include ${{ matrix.tabInfo.name }} run build
66+
67+
- name: Run Auxillary Tasks
68+
if: matrix.tabInfo.changes == 'true'
69+
run: |
70+
cd ${{ matrix.tabInfo.directory }}
71+
yarn tsc
72+
yarn lint

0 commit comments

Comments
 (0)