Skip to content

Commit

Permalink
Use workflow from main (with fixes)
Browse files Browse the repository at this point in the history
  • Loading branch information
akoptelov committed Oct 20, 2023
1 parent 28dbf50 commit 4225a75
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 11 deletions.
51 changes: 45 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,55 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Set up NodeJS
uses: actions/setup-node@v2
-
name: Git checkout
uses: actions/checkout@v3
-
name: Set up NodeJS
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Git checkout
uses: actions/checkout@v2
- name: NPM ci, build, & test
node-version: '18'
cache: 'npm'
-
name: NPM ci, build, & test
run: |
npm ci
npm run build --if-present
npm test
env:
CI: true

docker:
runs-on: ubuntu-latest
# needs: [test]
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
openmina/mina-load-generator
# generate Docker tags based on the following events/attributes
tags: |
type=sha,format=short,prefix={{branch}}-
type=raw,value={{branch}},enable={{is_default_branch}}
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"eslint": "^8.7.0",
"eslint-plugin-o1js": "^0.1.0",
"eslint-plugin-o1js": "^0.4.0",
"eslint-plugin-snarkyjs": "^0.3.0",
"husky": "^7.0.1",
"jest": "^29.5.0",
Expand Down

0 comments on commit 4225a75

Please sign in to comment.