Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
leonitousconforti committed Oct 8, 2023
1 parent de81063 commit b4b4975
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 37 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/build-rush.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
required: true
TS_OAUTH_CLIENT_ID:
required: true
inputs:
buildParameters:
required: false
type: string

jobs:
build-packages:
Expand All @@ -24,7 +28,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version: latest

- name: Connect to Tailscale
uses: tailscale/github-action@v2
Expand All @@ -36,7 +40,7 @@ jobs:
- name: Testing Server Online?
run: |
tailscale status
# tailscale ping ci.internal.tinyburg.app
tailscale ping ci.internal.tinyburg.app
- name: Start ssh agent
run: |
Expand All @@ -56,35 +60,22 @@ jobs:
ssh-add -D
ssh-add
# - name: Testing Server Reachable?
# run: ssh ci@ci.internal.tinyburg.app "echo 'Hi, Mom!'"
- name: Testing Server Reachable?
run: ssh ci@ci.internal.tinyburg.app "echo 'Hi, Mom!'"

- if: runner.os == 'Linux'
name: Start xvfb
run: |
sudo /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo "DISPLAY=:99" >> $GITHUB_ENV
- name: Setup cache
uses: actions/cache@v3
with:
path: common/temp/build-cache
key: linux_node-18_build-cache

- name: Rush Install
run: |
node common/scripts/install-run-rush.js install
node common/scripts/install-run-rush.js update-autoinstaller --name rush-prettier
node common/scripts/install-run-rush.js update-autoinstaller --name rush-commitlint
run: node common/scripts/install-run-rush.js install

- name: Verify Change Logs
run: node common/scripts/install-run-rush.js change --verify

- name: Rush build and test
run: |
node common/scripts/install-run-rush.js rebuild
# node common/scripts/install-run-rush.js test --timeline --production
run: node common/scripts/install-run-rush.js test --timeline --production ${{ inputs.buildParameters }}
env:
RUSH_BUILD_CACHE_ENABLED: 1
RUSH_BUILD_CACHE_WRITE_ALLOWED: 1
ARCHITECT_DOCKER_HOST: "ssh://ci@ci.internal.tinyburg.app:22"
36 changes: 18 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ jobs:
uses: ./.github/workflows/build-rush.yaml
secrets: inherit

build-docker-authproxy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Hi Mom
run: echo "Hi, Mom!"
# build-docker-authproxy:
# needs: build
# uses: ./.github/workflows/build-rush.yaml
# secrets: inherit
# with:
# buildParameters: --verbose

build-docker-auto-gold-bits:
needs: build
runs-on: ubuntu-latest
steps:
- name: Hi Mom
run: echo "Hi, Mom!"
# build-docker-auto-gold-bits:
# needs: build
# uses: ./.github/workflows/build-rush.yaml
# secrets: inherit
# with:
# buildParameters: --verbose

build-docker-discord-bot:
needs: build
runs-on: ubuntu-latest
steps:
- name: Hi Mom
run: echo "Hi, Mom!"
# build-docker-discord-bot:
# needs: build
# uses: ./.github/workflows/build-rush.yaml
# secrets: inherit
# with:
# buildParameters: --verbose

0 comments on commit b4b4975

Please sign in to comment.