Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 12 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,19 @@ jobs:
matrix:
opensearch-version: [1.2]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Apt install
run: cat Aptfile | sudo xargs apt-get install
run: cat apt.txt | sudo xargs apt-get install

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.9.1"

- id: cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '**/test_reqirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
cache: 'pip'
cache-dependency-path: |
requirements.txt
test_requirements.txt

- name: Install dependencies
run: pip install -r requirements.txt -r test_requirements.txt
Expand Down Expand Up @@ -97,35 +93,24 @@ jobs:
CELERY_RESULT_BACKEND: redis://localhost:6379/4

- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml

javascript-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up NodeJS
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v5
with:
node-version: "14.18.2"
cache: 'yarn'

- name: Set up environment
run: sudo apt-get install libelf1

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies
run: yarn install --immutable

Expand All @@ -151,6 +136,6 @@ jobs:
run: node node_modules/webpack/bin/webpack.js --config webpack.config.prod.js --bail

- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
file: coverage/lcov.info
2 changes: 1 addition & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
github.event_name == 'workflow_dispatch' ||
github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: release
- uses: akhileshns/heroku-deploy@79ef2ae4ff9b897010907016b268fd0f88561820
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-candiate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
github.event_name == 'workflow_dispatch' ||
github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: release-candidate
- uses: akhileshns/heroku-deploy@79ef2ae4ff9b897010907016b268fd0f88561820
Expand Down
Loading