-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test arc-runner-set k8s self-hosted runner
- Loading branch information
1 parent
f3f9832
commit 9070607
Showing
1 changed file
with
58 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,60 +7,62 @@ on: | |
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
DJANGO_SETTINGS_MODULE: hip.settings.dev | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: hip_ci | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
runs-on: arc-runner-set #ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- run: npm install | ||
- run: npm run build | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' | ||
cache-dependency-path: 'requirements/*/**.txt' | ||
- name: Cache pre-commit | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: ${{ runner.os }}-precommit-${{ hashFiles('.pre-commit-config.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-precommit- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel pip-tools | ||
pip-sync requirements/base/base.txt requirements/dev/dev.txt | ||
- uses: pre-commit/[email protected] | ||
- name: Run Tests | ||
run: make run-tests | ||
env: | ||
DATABASE_URL: postgres://postgres:postgres@localhost:5432/hip_ci | ||
- name: Test build deploy image | ||
run: inv image.build | ||
- run: echo "🎉 This job just ran on runner 'arc-runner-set' scale set runners!" | ||
# env: | ||
# DJANGO_SETTINGS_MODULE: hip.settings.dev | ||
# services: | ||
# postgres: | ||
# image: postgres | ||
# env: | ||
# POSTGRES_PASSWORD: postgres | ||
# POSTGRES_DB: hip_ci | ||
# options: >- | ||
# --health-cmd pg_isready | ||
# --health-interval 10s | ||
# --health-timeout 5s | ||
# --health-retries 5 | ||
# ports: | ||
# - 5432:5432 | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: '16' | ||
# - name: Cache node modules | ||
# uses: actions/cache@v3 | ||
# env: | ||
# cache-name: cache-node-modules | ||
# with: | ||
# path: ~/.npm | ||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-build-${{ env.cache-name }}- | ||
# ${{ runner.os }}-build- | ||
# ${{ runner.os }}- | ||
# - run: npm install | ||
# - run: npm run build | ||
# - uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: '3.10' | ||
# cache: 'pip' | ||
# cache-dependency-path: 'requirements/*/**.txt' | ||
# - name: Cache pre-commit | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: ~/.cache/pre-commit | ||
# key: ${{ runner.os }}-precommit-${{ hashFiles('.pre-commit-config.yaml') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-precommit- | ||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip wheel pip-tools | ||
# pip-sync requirements/base/base.txt requirements/dev/dev.txt | ||
# - uses: pre-commit/[email protected] | ||
# - name: Run Tests | ||
# run: make run-tests | ||
# env: | ||
# DATABASE_URL: postgres://postgres:postgres@localhost:5432/hip_ci | ||
# - name: Test build deploy image | ||
# run: inv image.build |