Skip to content

Commit

Permalink
Merge branch 'main' of github.com:hadronlabs-org/lionco-contracts int…
Browse files Browse the repository at this point in the history
…o feat/puppeteer
  • Loading branch information
ratik committed Jan 10, 2024
2 parents b645ce3 + 7d025bc commit 10166dc
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
# yamllint disable rule:line-length
name: Clear cache

on:
schedule:
- cron: '30 1 * * 1-5'
workflow_dispatch:

jobs:
job1:
name: Clear Docker
if: always()
runs-on: ${{ matrix.runner_label }}
strategy:
matrix:
runner_label: ${{ fromJSON('["lionco-runner-1", "lionco-runner-2", "lionco-runner-3", "lionco-runner-4", "lionco-runner-5", "lionco-runner-6"]') }}
steps:
- name: Stop old containers
run: docker ps -q | grep -q . && docker stop $(docker ps -q) || echo "No containers to stop"
- name: Remove old containers
run: docker ps -a -q | grep -q . && docker rm $(docker ps -a -q) || echo "No containers to remove"
- name: Delete old images
run: docker system prune --volumes --all --force
job2:
name: Clear workspaces
if: always()
needs: job1
runs-on: ${{ matrix.runner_label }}
strategy:
matrix:
runner_label: ${{ fromJSON('["lionco-runner-1", "lionco-runner-2", "lionco-runner-3", "lionco-runner-4", "lionco-runner-5", "lionco-runner-6"]') }}
steps:
- uses: xembly/workflow-manager@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
run: clean
verbose: true
7 changes: 6 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ jobs:
node-version: '18.16.1'
cache: 'yarn'
cache-dependency-path: integration_tests/yarn.lock
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version: 1.20
cache: false
- name: Lint
run: cd integration_tests && yarn --ignore-engines && yarn lint
# - name: Build images
Expand All @@ -86,4 +91,4 @@ jobs:
run: |
cd integration_tests
yarn vitest ./src --run --shard 1/2 --bail 1
yarn vitest ./src --run --shard 2/2 --bail 1
yarn vitest ./src --run --shard 2/2 --bail 1
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ compile:
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
--platform linux/amd64 \
cosmwasm/workspace-optimizer:0.15.0
@sudo chown -R $(shell id -u):$(shell id -g) artifacts

compile_arm64:
@docker run --rm -v "$(CURDIR)":/code \
Expand Down

0 comments on commit 10166dc

Please sign in to comment.