Skip to content

Commit

Permalink
Merge pull request #916 from andrew-bierman/fix/removing-tests-from-a…
Browse files Browse the repository at this point in the history
…ctions

🎨 removing tests from actions that are not the test action
  • Loading branch information
andrew-bierman authored May 9, 2024
2 parents 7d5ca27 + 024c390 commit 0046b09
Show file tree
Hide file tree
Showing 12 changed files with 75 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/android-build-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
required: true
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
update:
name: EAS Android Preview Build
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/android-preview-build-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
pull_request:
branches: ['**']

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
update:
name: EAS Android Build Local
Expand Down Expand Up @@ -41,9 +46,11 @@ jobs:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: Setup environment variables
- name: Export secrets as environment variables
env:
JSON_SECRETS: '${{ toJSON(secrets) }}'
run: |
echo "MAPBOX_DOWNLOADS_TOKEN=$MAPBOX_DOWNLOADS_TOKEN" >> $GITHUB_ENV
eval "$(jq -r 'to_entries | map("export \(.key)=\(.value|tostring)") | .[]' <<< "$JSON_SECRETS")"
- name: Install dependencies
uses: ./.github/actions/install-deps
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
- 'packages/api/**'
- 'server/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
deploy:
name: Deploy to Cloudflare Workers
Expand Down Expand Up @@ -42,13 +47,14 @@ jobs:
# workingDirectory: packages/api
workingDirectory: server
command: yarn run deploy:prod
packageManager: bun
# packageManager: bun
packageManager: yarn
secrets: |
APP_URL
JWT_VERIFICATION_KEY
CI
env:
APP_URL: ${{ secrets.NEXT_PUBLIC_APP_URL }}
JWT_VERIFICATION_KEY: ${{ secrets.JWT_VERIFICATION_KEY }}
APP_URL: ${{ secrets.VITE_PUBLIC_APP_URL }}
JWT_VERIFICATION_KEY: ${{ secrets.JWT_SECRET }}
CI: true
NO_D1_WARNING: true
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: android-build-apk

on:
push:
branches: ['**']
pull_request:
branches: ['**']

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
install-and-test:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/docker.node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
- dev
- andrew_testing

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
build:

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/eas-build-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ on:
- preview
- local

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
update:
name: EAS ${{ github.event.inputs.platform }} ${{ github.event.inputs.build-type }} Build
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/expo.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
pull_request:
branches: [ "**" ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
build:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ios-build-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
pull_request:
branches: ['**']

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
build:
runs-on: macos-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@
# https://github.com/actions/labeler

name: Pull request labeler

on:
- pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
label:

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/node.js.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@ on:
pull_request:
branches: [ "**" ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest] # Operating systems
node-version: [20.x, 22.x] # Node.js versions
node-version: [20.x] # Node.js versions

steps:
- name: Checkout Repository
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,19 @@ on:
pull_request:
branches: [ "**" ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true


jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest] # Operating systems
node-version: [20.x, 22.x] # Node.js versions
node-version: [20.x] # Node.js versions

steps:
- uses: actions/checkout@v3
Expand All @@ -31,9 +36,5 @@ jobs:
- name: Lint code
run: yarn lint

- name: Run tests
continue-on-error: true
run: yarn test

- name: Build
run: yarn build:prod
13 changes: 9 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ on:
pull_request:
branches: ['**']

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Setup JS Runtime environment
uses: ./.github/actions/setup-js-runtime

- name: Find or create comment
uses: actions/github-script@v6
Expand Down Expand Up @@ -51,6 +53,9 @@ jobs:
- name: Install dependencies
uses: ./.github/actions/install-deps

- name: Setup API
run: cp -n server/wrangler.toml.example server/wrangler.toml

- name: Run tests
id: run_tests
run: |
Expand Down

0 comments on commit 0046b09

Please sign in to comment.