Skip to content

Commit

Permalink
chore: action test
Browse files Browse the repository at this point in the history
  • Loading branch information
bbearcookie committed Jan 1, 2024
1 parent 3466909 commit 98ea92a
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 119 deletions.
11 changes: 11 additions & 0 deletions .github/actions/setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Setup
runs:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn

- run: ls -al
119 changes: 0 additions & 119 deletions .github/workflows/build-and-test.yml

This file was deleted.

92 changes: 92 additions & 0 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Build/Test on PR

on:
pull_request:
branches: ['chore/224-express-directory']

env:
EXPRESS_ENV_FILE: ${{ secrets.EXPRESS_ENV_FILE }}

jobs:
call-hello:
uses: ./.github/workflows/setup.yml

hello:
runs-on: ubuntu-latest
needs: call-hello
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn

- run: echo ${{ needs.call-hello.outputs.a }} ${{ needs.call-hello.outputs.b }}

action-test:
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/setup.yml
- run: ls -al

build-react:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn

- run: yarn
- run: yarn web build
build-express:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn

- run: yarn
- run: yarn slack build
build-api-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn

- run: yarn
- run: yarn api-docs build
test-express:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn

- name: Setting .env
run: |
echo "${{ secrets.EXPRESS_ENV_FILE }}" >> .env
mv .env packages/slack/.env
cat packages/slack/.env
- run: yarn
- run: yarn slack test

0 comments on commit 98ea92a

Please sign in to comment.