Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
svanaeinars committed Dec 12, 2024
1 parent 348e044 commit ff2adf2
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 268 deletions.
133 changes: 75 additions & 58 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,19 @@ jobs:
- name: Setup yarn
run: corepack enable

- name: Install Root Dependencies
run: yarn install --immutable
- name: Cache for NodeJS dependencies
id: node-modules
continue-on-error: true
uses: ./.github/actions/cache
with:
path: infra/node_modules
key: ${{ runner.os }}-${{ hashFiles('infra/yarn.lock') }}-infra

- name: Check cache success
run: '[[ "${{ steps.node-modules.outputs.success }}" != "false" ]] || exit 1'

- name: Install Infra Dependencies
- name: Building NodeJS dependencies
if: steps.node-modules.outputs.cache-hit != 'true'
working-directory: infra
run: yarn install --immutable

Expand Down Expand Up @@ -390,68 +399,76 @@ jobs:
./infra/scripts/ci/git-check-dirty.sh "/" "nx format:write" "dirtybot"
linting:
needs:
- prepare
if: false
runs-on: ec2-runners
container:
image: public.ecr.aws/m3u4c4h9/island-is/actions-runner-public:latest
timeout-minutes: 35
if: needs.prepare.outputs.LINT_CHUNKS
env:
AFFECTED_PROJECTS: ${{ matrix.projects }}
NODE_OPTIONS: --max-old-space-size=4096
MAX_JOBS: 3
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.prepare.outputs.LINT_CHUNKS) }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Setup yarn
run: corepack enable
- name: Get cache
id: get-cache
uses: ./.github/actions/get-cache
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
keys: ${{ needs.prepare.outputs.CACHE_KEYS }}
enable-cache: 'node_modules,generated-files'
- name: Linting
run: ./scripts/ci/run-in-parallel-native.sh lint
- run: echo "This step won't run"
# needs:
# - prepare
# runs-on: ec2-runners
# container:
# image: public.ecr.aws/m3u4c4h9/island-is/actions-runner-public:latest
# timeout-minutes: 35
# if: needs.prepare.outputs.LINT_CHUNKS
# env:
# AFFECTED_PROJECTS: ${{ matrix.projects }}
# NODE_OPTIONS: --max-old-space-size=4096
# MAX_JOBS: 3
# strategy:
# fail-fast: false
# matrix: ${{ fromJson(needs.prepare.outputs.LINT_CHUNKS) }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version-file: 'package.json'
# - name: Setup yarn
# run: corepack enable
# - name: Get cache
# id: get-cache
# uses: ./.github/actions/get-cache
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# keys: ${{ needs.prepare.outputs.CACHE_KEYS }}
# enable-cache: 'node_modules,generated-files'
# - name: Linting
# run: ./scripts/ci/run-in-parallel-native.sh lint

build:
needs:
- prepare
if: false
runs-on: ec2-runners
container:
image: public.ecr.aws/m3u4c4h9/island-is/actions-runner-public:latest
timeout-minutes: 35
env:
AFFECTED_PROJECTS: ${{ matrix.projects }}
MAX_JOBS: 2
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.prepare.outputs.BUILD_CHUNKS) }}
if: needs.prepare.outputs.BUILD_CHUNKS
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Setup yarn
run: corepack enable
- name: Get cache
id: get-cache
uses: ./.github/actions/get-cache
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
keys: ${{ needs.prepare.outputs.CACHE_KEYS }}
enable-cache: 'node_modules,generated-files'
- run: echo "This step won't run"
# needs:
# - prepare
# runs-on: ec2-runners
# container:
# image: public.ecr.aws/m3u4c4h9/island-is/actions-runner-public:latest
# timeout-minutes: 35
# env:
# AFFECTED_PROJECTS: ${{ matrix.projects }}
# MAX_JOBS: 2
# strategy:
# fail-fast: false
# matrix: ${{ fromJson(needs.prepare.outputs.BUILD_CHUNKS) }}
# if: needs.prepare.outputs.BUILD_CHUNKS
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version-file: 'package.json'
# - name: Setup yarn
# run: corepack enable
# - name: Get cache
# id: get-cache
# uses: ./.github/actions/get-cache
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# keys: ${{ needs.prepare.outputs.CACHE_KEYS }}
# enable-cache: 'node_modules,generated-files'

- name: Building
run: ./scripts/ci/run-in-parallel-native.sh build
# - name: Building
# run: ./scripts/ci/run-in-parallel-native.sh build

success:
runs-on: ec2-runners
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ testem.log
/typings
/debug.log
*.log
docker-compose.yml

# System Files
.DS_Store
Expand Down
209 changes: 0 additions & 209 deletions docker-compose.yml

This file was deleted.

2 changes: 1 addition & 1 deletion infra/src/cli/generate-docker-compose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ export const generateDockerComposeConfig = async (
},
},
container_name: name,
env_file: [`.env.${name}`],
environment: {
...service.env,
IP: '0.0.0.0',
},
ports: [`${service.port}:${service.port}`],
Expand Down

0 comments on commit ff2adf2

Please sign in to comment.