Skip to content

Commit

Permalink
Merge pull request #1 from zksecurity/zksecurity-ci
Browse files Browse the repository at this point in the history
Adapt CI to work in zksecurity org
  • Loading branch information
mitschabaude authored Oct 10, 2024
2 parents 59a6c58 + 4c605ff commit 30b6f9b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 273 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/auto-merge-main-to-v2.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/benchmarks.yml

This file was deleted.

81 changes: 7 additions & 74 deletions .github/workflows/build-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- develop
pull_request:
workflow_dispatch: {}
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
Prepare:
Expand All @@ -22,7 +25,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22'

- name: Cache dependencies and build
uses: actions/cache@v4
Expand Down Expand Up @@ -81,7 +84,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22'

- name: Restore cache
uses: actions/cache@v4
Expand Down Expand Up @@ -125,7 +128,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22'

- name: Restore cache
uses: actions/cache@v4
Expand Down Expand Up @@ -183,13 +186,6 @@ jobs:
echo "### Test Results for Unit Tests Chunk ${{ matrix.chunk }}" >> $GITHUB_STEP_SUMMARY
cat profiling.md >> $GITHUB_STEP_SUMMARY
Build-And-Test-Server-Unit-Tests:
name: Build-And-Test-Server (Unit tests)
needs: [Run-Unit-Tests]
runs-on: ubuntu-latest
steps:
- run: echo "All unit tests completed successfully"

Build-And-Test-Web:
needs: Prepare
timeout-minutes: 90
Expand All @@ -204,7 +200,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22'

- name: Restore npm cache
uses: actions/cache@v4
Expand Down Expand Up @@ -240,66 +236,3 @@ jobs:
name: e2e-tests-report
path: tests/report/
retention-days: 30

Release-on-NPM:
if: github.ref == 'refs/heads/main'
timeout-minutes: 180
runs-on: ubuntu-latest
needs: [Build-And-Test-Server, Run-Unit-Tests, Build-And-Test-Web]
steps:
- name: Restore repository
uses: actions/cache@v4
with:
path: .
key: repo-${{ github.sha }}

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Build o1js
run: |
npm ci
npm run prepublishOnly
- name: Publish to NPM if version has changed
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
strategy: upgrade
env:
INPUT_TOKEN: ${{ secrets.NPM_TOKEN }}

Release-mina-signer-on-NPM:
if: github.ref == 'refs/heads/main'
timeout-minutes: 180
runs-on: ubuntu-latest
needs: [Build-And-Test-Server, Run-Unit-Tests, Build-And-Test-Web]
steps:
- name: Restore repository
uses: actions/cache@v4
with:
path: .
key: repo-${{ github.sha }}

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Build mina-signer
run: |
npm ci
cd src/mina-signer
npm ci
npm run prepublishOnly
- name: Publish to NPM if version has changed
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: './src/mina-signer/package.json'
strategy: upgrade
env:
INPUT_TOKEN: ${{ secrets.NPM_TOKEN }}
26 changes: 0 additions & 26 deletions .github/workflows/doc.yml

This file was deleted.

82 changes: 0 additions & 82 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 30b6f9b

Please sign in to comment.