Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: nx cloud #323

Closed
wants to merge 64 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
0a7efaa
add nx-cloud config to nx.json
sergeytimoshin Oct 6, 2023
9d0c287
experimental nx cache
sergeytimoshin Oct 11, 2023
31307bb
update github workflow [wip]
sergeytimoshin Oct 11, 2023
3fd3149
update github workflow [wip]
sergeytimoshin Oct 11, 2023
900d7a6
update github workflow [wip]
sergeytimoshin Oct 11, 2023
91dd26f
update github workflow [wip]
sergeytimoshin Oct 11, 2023
edbbfca
update github workflow [wip]
sergeytimoshin Oct 11, 2023
9ab719d
update github workflow [wip]
sergeytimoshin Oct 11, 2023
9ced150
update github workflow [wip]
sergeytimoshin Oct 11, 2023
9375969
update github workflow [wip]
sergeytimoshin Oct 11, 2023
6381feb
update github workflow [wip]
sergeytimoshin Oct 11, 2023
567612a
update github workflow [wip]
sergeytimoshin Oct 11, 2023
4a5b513
update github workflow [wip]
sergeytimoshin Oct 11, 2023
7aa384b
update github workflow [wip]
sergeytimoshin Oct 11, 2023
6104aa8
update github workflow [wip]
sergeytimoshin Oct 11, 2023
6b62969
update github workflow [wip]
sergeytimoshin Oct 11, 2023
574834d
update github workflow [wip]
sergeytimoshin Oct 11, 2023
91ebd3a
update github workflow [wip]
sergeytimoshin Oct 11, 2023
4c76222
update github workflow [wip]
sergeytimoshin Oct 11, 2023
e8179ed
update github workflow [wip]
sergeytimoshin Oct 11, 2023
1c7a10d
update github workflow [wip]
sergeytimoshin Oct 11, 2023
39404aa
update github workflow [wip]
sergeytimoshin Oct 11, 2023
cc96e3c
update github workflow [wip]
sergeytimoshin Oct 11, 2023
3098c80
update github workflow [wip]
sergeytimoshin Oct 11, 2023
e578dd4
update github workflow [wip]
sergeytimoshin Oct 11, 2023
41baf87
update github workflow [wip]
sergeytimoshin Oct 11, 2023
c45c5b7
update github workflow [wip]
sergeytimoshin Oct 11, 2023
7885fdb
update github workflow [wip]
sergeytimoshin Oct 11, 2023
27da9ea
update github workflow [wip]
sergeytimoshin Oct 12, 2023
6e3a24d
update github workflow [wip]
sergeytimoshin Oct 16, 2023
e976b6b
update github workflow [wip]
sergeytimoshin Oct 16, 2023
385a57f
update github workflow [wip]
sergeytimoshin Oct 16, 2023
5787c44
update github workflow [wip]
sergeytimoshin Oct 16, 2023
d7fa073
update github workflow [wip]
sergeytimoshin Oct 16, 2023
bf352b4
update github workflow [wip]
sergeytimoshin Oct 16, 2023
ea0b0fc
update github workflow [wip]
sergeytimoshin Oct 16, 2023
9b71e63
update github workflow [wip]
sergeytimoshin Oct 16, 2023
f1f3551
update github workflow [wip]
sergeytimoshin Oct 16, 2023
6393534
update github workflow [wip]
sergeytimoshin Oct 16, 2023
b43ef76
update github workflow [wip]
sergeytimoshin Oct 16, 2023
c46e9aa
update github workflow [wip]
sergeytimoshin Oct 16, 2023
d237479
update github workflow [wip]
sergeytimoshin Oct 17, 2023
83dbc0d
update github workflow [wip]
sergeytimoshin Oct 17, 2023
f70cbb6
update github workflow [wip]
sergeytimoshin Oct 17, 2023
1132afc
update github workflow [wip]
sergeytimoshin Oct 17, 2023
62130d0
update github workflow [wip]
sergeytimoshin Oct 17, 2023
14effe5
update github workflow [wip]
sergeytimoshin Oct 17, 2023
e488657
update github workflow [wip]
sergeytimoshin Oct 17, 2023
ac7ccc8
update github workflow [wip]
sergeytimoshin Oct 17, 2023
bceb202
update github workflow [wip]
sergeytimoshin Oct 17, 2023
6dc6b38
update github workflow [wip]
sergeytimoshin Oct 17, 2023
df10515
update github workflow [wip]
sergeytimoshin Oct 17, 2023
7778fe4
update github workflow [wip]
sergeytimoshin Oct 17, 2023
e9a0311
update github workflow [wip]
sergeytimoshin Oct 17, 2023
ad02e4d
update github workflow [wip]
sergeytimoshin Oct 17, 2023
db1180b
update github workflow [wip]
sergeytimoshin Oct 17, 2023
0db6e8e
update github workflow [wip]
sergeytimoshin Oct 17, 2023
33c2254
update github workflow [wip]
sergeytimoshin Oct 17, 2023
da567b5
update github workflow [wip]
sergeytimoshin Oct 17, 2023
548c96d
update github workflow [wip]
sergeytimoshin Oct 17, 2023
0c1eff5
update github workflow [wip]
sergeytimoshin Oct 17, 2023
5be7aea
update github workflow [wip]
sergeytimoshin Oct 17, 2023
4efbdbe
update github workflow [wip]
sergeytimoshin Oct 17, 2023
a91c46b
update github workflow [wip]
sergeytimoshin Oct 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 27 additions & 23 deletions .github/actions/setup-and-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ runs:
path: .local
key: ${{ runner.os }}-local-${{ hashFiles('**/install.sh') }}

- name: Install redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: "7.x"

- name: Install dependencies
shell: bash
run: |
Expand All @@ -36,33 +41,32 @@ runs:
fi
source ./scripts/devenv.sh

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install pnpm dependencies
shell: bash
run: pnpm install
# - name: Setup pnpm
# uses: pnpm/[email protected]
# with:
# version: 8
# run_install: false
#
# - name: Get pnpm store directory
# shell: bash
# run: |
# echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
#
# - uses: actions/cache@v3
# name: Setup pnpm cache
# with:
# path: ${{ env.STORE_PATH }}
# key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-pnpm-
#
# - name: Install pnpm dependencies
# shell: bash
# run: pnpm install

- name: Build and prepare for tests
shell: bash
run: |
source ./scripts/devenv.sh
mkdir -p /home/runner/.config/solana/
solana-keygen new --no-bip39-passphrase -o /home/runner/.config/solana/id.json
npx nx build @lightprotocol/cli
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches:
- main
pull_request:

#concurrency:
# group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
# cancel-in-progress: true

jobs:
lint-build-test:
name: Nx Cloud - Main Job
permissions:
contents: 'read'
actions: 'read'
uses: ./.github/workflows/nx-main.yml
with:
working-directory: "."
pnpm-version: "8.8.0"
parallel-commands-on-agents: |
npx nx affected --target=lint --parallel=1
npx nx affected --target=build --parallel=1
npx nx affected --target=test --parallel=1

agents:
name: Nx Cloud - Agents
uses: ./.github/workflows/nx-agents.yml
with:
working-directory: "."
pnpm-version: "8.8.0"
number-of-agents: 1
59 changes: 0 additions & 59 deletions .github/workflows/light-sdk-tests.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/light-system-programs-tests.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/lint.yml

This file was deleted.

Loading