mirror of
https://github.com/apache/superset.git
synced 2026-04-10 03:45:22 +00:00
build: inline external Github Actions to unblock CI (#12241)
* build: inline cached-dependencies to unblock CI * Run E2E on pull_request on;y * Inline all external actions * Checkout needed for internal actions Also fixes pre-commit * Add missing files
This commit is contained in:
22
.github/workflows/superset-e2e.yml
vendored
22
.github/workflows/superset-e2e.yml
vendored
@@ -1,6 +1,6 @@
|
||||
name: E2E
|
||||
|
||||
on: [push, pull_request_target]
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
cypress-matrix:
|
||||
@@ -35,10 +35,6 @@ jobs:
|
||||
ports:
|
||||
- 16379:6379
|
||||
steps:
|
||||
- name: Cancel Previous Runs
|
||||
uses: styfle/cancel-workflow-action@0.6.0
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
- name: Checkout code (push)
|
||||
if: github.event_name == 'push'
|
||||
uses: actions/checkout@v2
|
||||
@@ -52,43 +48,43 @@ jobs:
|
||||
with:
|
||||
python-version: "3.7"
|
||||
- name: OS dependencies
|
||||
uses: apache-superset/cached-dependencies@b90713b
|
||||
uses: ./.github/actions/cached-dependencies
|
||||
with:
|
||||
run: |
|
||||
apt-get-install
|
||||
- name: Install python dependencies
|
||||
uses: apache-superset/cached-dependencies@b90713b
|
||||
uses: ./.github/actions/cached-dependencies
|
||||
with:
|
||||
run: |
|
||||
pip-upgrade
|
||||
pip install -r requirements/testing.txt
|
||||
- name: Setup postgres
|
||||
uses: apache-superset/cached-dependencies@b90713b
|
||||
uses: ./.github/actions/cached-dependencies
|
||||
with:
|
||||
run: |
|
||||
setup-postgres
|
||||
- name: Import test data
|
||||
uses: apache-superset/cached-dependencies@b90713b
|
||||
uses: ./.github/actions/cached-dependencies
|
||||
with:
|
||||
run: |
|
||||
testdata
|
||||
- name: Install npm dependencies
|
||||
uses: apache-superset/cached-dependencies@b90713b
|
||||
uses: ./.github/actions/cached-dependencies
|
||||
with:
|
||||
run: |
|
||||
npm-install
|
||||
- name: Build javascript packages
|
||||
uses: apache-superset/cached-dependencies@b90713b
|
||||
uses: ./.github/actions/cached-dependencies
|
||||
with:
|
||||
run: |
|
||||
build-instrumented-assets
|
||||
- name: Install cypress
|
||||
uses: apache-superset/cached-dependencies@b90713b
|
||||
uses: ./.github/actions/cached-dependencies
|
||||
with:
|
||||
run: |
|
||||
cypress-install
|
||||
- name: Run Cypress
|
||||
uses: apache-superset/cached-dependencies@b90713b
|
||||
uses: ./.github/actions/cached-dependencies
|
||||
env:
|
||||
CYPRESS_BROWSER: ${{ matrix.browser }}
|
||||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||
|
||||
Reference in New Issue
Block a user