Commit 4f81820f authored by tom's avatar tom

workflow cache and dependency test

parent f32fcb81
name: Run E2E tests k8s
on:
push:
# push:
# pull_request:
workflow_dispatch
env:
K8S_LOCAL_PORT: ${{ secrets.K8S_LOCAL_PORT }}
......
name: Run code checks
on: [pull_request]
name: Linters
on:
pull_request:
push:
branches:
- main
jobs:
check_code:
name: Check code
name: Run code checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- name: Install dependencies
run: yarn
run: yarn install --frozen-lockfile
- name: Run ESLint
run: yarn lint:eslint
- name: Compile TypeScript
......
......@@ -11,11 +11,12 @@ jobs:
- uses: actions/checkout@v3
with:
lfs: 'true'
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- name: Install dependencies
run: yarn
run: yarn install --frozen-lockfile
- name: Run your tests
run: HOME=/root yarn test-ct
- name: Upload test results
......
......@@ -54,11 +54,11 @@ jobs:
SENTRY_CSP_REPORT_URI=${{ secrets.SENTRY_CSP_REPORT_URI }}
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
deploy_frontend:
needs: push_to_registry
uses: blockscout/blockscout-ci-cd/.github/workflows/deploy.yaml@deploy-smart-contract-verifier
with:
valuesDir: deploy/values
appNamespace: frontend-main
appName: frontend
secrets: inherit
# deploy_frontend:
# needs: push_to_registry
# uses: blockscout/blockscout-ci-cd/.github/workflows/deploy.yaml@master
# with:
# valuesDir: deploy/values
# appNamespace: frontend-main
# appName: frontend
# secrets: inherit
name: Test workflow
on:
workflow_run:
workflows: ["Linters"]
types:
- completed
jobs:
on-success:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Test depended workflow
runs-on: ubuntu-latest
steps:
- name: Print result
run: echo Success
on-error:
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
name: Test depended workflow
runs-on: ubuntu-latest
steps:
- name: Print result
run: echo Failure
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment