|
11 | 11 | - feature/** |
12 | 12 | - staging/** |
13 | 13 | jobs: |
14 | | - unit-tests: |
15 | | - runs-on: warp-ubuntu-latest-x64-16x |
16 | | - timeout-minutes: 30 |
17 | | - steps: |
18 | | - - name: Checkout repo |
19 | | - uses: actions/checkout@v2 |
20 | | - with: |
21 | | - fetch-depth: 0 |
22 | | - - name: Set up Node.js |
23 | | - uses: actions/setup-node@v3 |
24 | | - with: |
25 | | - node-version: '20' |
26 | | - cache: 'yarn' |
27 | | - - name: Install rust |
28 | | - |
29 | | - |
30 | | - with: |
31 | | - # Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest') |
32 | | - version: 'latest' |
33 | | - - name: Install project dependencies |
34 | | - run: yarn --frozen-lockfile |
35 | | - - uses: nrwl/nx-set-shas@v3 |
36 | | - with: |
37 | | - main-branch-name: 'master' |
38 | | - - name: Build |
39 | | - run: yarn build:dev |
40 | | - - name: Run Unit tests |
41 | | - run: yarn tools --test --unit |
| 14 | + # unit-tests: |
| 15 | + # runs-on: warp-ubuntu-latest-x64-16x |
| 16 | + # timeout-minutes: 30 |
| 17 | + # steps: |
| 18 | + # - name: Checkout repo |
| 19 | + # uses: actions/checkout@v2 |
| 20 | + # with: |
| 21 | + # fetch-depth: 0 |
| 22 | + # - name: Set up Node.js |
| 23 | + # uses: actions/setup-node@v3 |
| 24 | + # with: |
| 25 | + # node-version: '20' |
| 26 | + # cache: 'yarn' |
| 27 | + # - name: Install rust |
| 28 | + |
| 29 | + |
| 30 | + # with: |
| 31 | + # # Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest') |
| 32 | + # version: 'latest' |
| 33 | + # - name: Install project dependencies |
| 34 | + # run: yarn --frozen-lockfile |
| 35 | + # - uses: nrwl/nx-set-shas@v3 |
| 36 | + # with: |
| 37 | + # main-branch-name: 'master' |
| 38 | + # - name: Build |
| 39 | + # run: yarn build:dev |
| 40 | + # - name: Run Unit tests |
| 41 | + # run: yarn tools --test --unit |
42 | 42 | integration-tests: |
43 | 43 | runs-on: ubuntu-latest |
44 | 44 | timeout-minutes: 30 |
|
67 | 67 | - name: Install LA Blockchain Dependencies |
68 | 68 | run: npm i |
69 | 69 | working-directory: ${{github.workspace}}/lit-assets/blockchain/contracts |
70 | | - - name: Docker login |
71 | | - id: login |
72 | | - run: docker login ghcr.io/ -u ${{secrets.GH_USER}} --password ${{secrets.GH_PAT_FOR_SHIVA}} |
| 70 | + - name: Log in to GitHub Container Registry |
| 71 | + uses: docker/login-action@v2 |
| 72 | + with: |
| 73 | + registry: ghcr.io |
| 74 | + username: ${{ github.actor }} |
| 75 | + password: ${{ secrets.GITHUB_TOKEN }} |
73 | 76 | - name: Pull Shiva Container |
74 | 77 | id: shiva-pull |
75 | 78 | run: docker pull ghcr.io/lit-protocol/shiva:latest |
@@ -107,33 +110,33 @@ jobs: |
107 | 110 | - name: Post Pull Shiva Image |
108 | 111 | if: steps.shiva-pull.outputs.exit_code == 0 |
109 | 112 | run: docker rmi ghcr.io/lit-protocol/shiva |
110 | | - ping-lit-configuration-guides: |
111 | | - runs-on: ubuntu-latest |
112 | | - # needs: [unit-tests, integration-tests] # Make sure this job runs after others complete |
113 | | - steps: |
114 | | - - name: Get PR labels |
115 | | - id: pr-labels |
116 | | - uses: actions/github-script@v6 |
117 | | - if: github.event_name == 'pull_request' |
118 | | - with: |
119 | | - script: | |
120 | | - const labels = context.payload.pull_request.labels |
121 | | - .map(label => label.name) |
122 | | - .filter(name => name.startsWith('tag:')) |
123 | | - .map(name => name.split(':')[1]); |
124 | | - if (labels.length > 0) { |
125 | | - core.setOutput('tag', labels[0]); |
126 | | - } else { |
127 | | - core.setOutput('skip', 'true'); |
128 | | - } |
129 | | - - name: Trigger dependencies bot in lit-configuration-guides |
130 | | - if: steps.pr-labels.outputs.skip != 'true' |
131 | | - run: | |
132 | | - TAG="${{ steps.pr-labels.outputs.tag }}" |
133 | | - curl -X POST \ |
134 | | - -H "Accept: application/vnd.github.everest-preview+json" \ |
135 | | - -H "Authorization: token ${{ secrets.GH_PAT_FOR_SHIVA_LIT_CONFIGURATION_GUIDES_REPO }}" \ |
136 | | - https://api.github.com/repos/LIT-Protocol/lit-configuration-guides/dispatches \ |
137 | | - -d "{\"event_type\":\"dependency_update\", \"client_payload\": {\"labels\": [\"$TAG\"]}}" |
138 | | - env: |
139 | | - GH_PAT_LIT_CONFIGURATION_GUIDES_REPO: ${{ secrets.GH_PAT_FOR_SHIVA_LIT_CONFIGURATION_GUIDES_REPO }} |
| 113 | + # ping-lit-configuration-guides: |
| 114 | + # runs-on: ubuntu-latest |
| 115 | + # # needs: [unit-tests, integration-tests] # Make sure this job runs after others complete |
| 116 | + # steps: |
| 117 | + # - name: Get PR labels |
| 118 | + # id: pr-labels |
| 119 | + # uses: actions/github-script@v6 |
| 120 | + # if: github.event_name == 'pull_request' |
| 121 | + # with: |
| 122 | + # script: | |
| 123 | + # const labels = context.payload.pull_request.labels |
| 124 | + # .map(label => label.name) |
| 125 | + # .filter(name => name.startsWith('tag:')) |
| 126 | + # .map(name => name.split(':')[1]); |
| 127 | + # if (labels.length > 0) { |
| 128 | + # core.setOutput('tag', labels[0]); |
| 129 | + # } else { |
| 130 | + # core.setOutput('skip', 'true'); |
| 131 | + # } |
| 132 | + # - name: Trigger dependencies bot in lit-configuration-guides |
| 133 | + # if: steps.pr-labels.outputs.skip != 'true' |
| 134 | + # run: | |
| 135 | + # TAG="${{ steps.pr-labels.outputs.tag }}" |
| 136 | + # curl -X POST \ |
| 137 | + # -H "Accept: application/vnd.github.everest-preview+json" \ |
| 138 | + # -H "Authorization: token ${{ secrets.GH_PAT_FOR_SHIVA_LIT_CONFIGURATION_GUIDES_REPO }}" \ |
| 139 | + # https://api.github.com/repos/LIT-Protocol/lit-configuration-guides/dispatches \ |
| 140 | + # -d "{\"event_type\":\"dependency_update\", \"client_payload\": {\"labels\": [\"$TAG\"]}}" |
| 141 | + # env: |
| 142 | + # GH_PAT_LIT_CONFIGURATION_GUIDES_REPO: ${{ secrets.GH_PAT_FOR_SHIVA_LIT_CONFIGURATION_GUIDES_REPO }} |
0 commit comments