Skip to content

Commit

Permalink
Revert "Update workflows (#570)"
Browse files Browse the repository at this point in the history
This reverts commit 2cc6ea2.
  • Loading branch information
No767 authored Nov 7, 2024
1 parent 2cc6ea2 commit 853eefe
Show file tree
Hide file tree
Showing 9 changed files with 87 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ _Put an `x` in the boxes that apply_
- [ ] Documentation Update (Updates to README.md, the documentation, etc)
- [ ] Other (if none of the other choices apply)


## Checklist

<!-- Put an x inside [ ] to check it, like so: [x] -->

_Put an `x` in the boxes that apply_

- [ ] If code changes were made then they have been tested.
- [ ] All workflows pass with my new changes
- [ ] I have updated the documentation to reflect the changes. (if appropriate)
- [ ] Lint, format, and unit test workflows pass with my new changes
- [ ] This PR does **not** address a duplicate issue or PR

12 changes: 12 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Add 'workflows' label to any new or updated GitHub action workflow
workflows:
- .github/workflows/*

components:
- react/src/components/*

# Add the 'documentation' label to any changes in either of the documented files
documentation:
- README.md
- LICENSE
- CODE_OF_CONDUCT.md
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: pull_request_target

jobs:
auto-approve:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: github.actor == 'dependabot[bot]'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ on:
jobs:
build:
name: Build
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
defaults:
run:
working-directory: react/
working-directory: ./react/

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ on:
jobs:
Analyze:
name: Analyze
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
defaults:
run:
working-directory: react/
working-directory: ./react/

steps:
- name: Checkout Repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types:
- opened
workflow_run:
workflows: ["CodeQL", "Lint", "Build"]
workflows: ["Lint", "Build"]
branches: [react-rewrite]
types:
- completed
Expand All @@ -15,7 +15,7 @@ permissions:

jobs:
dependabot:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]'}}
steps:
- name: Dependabot metadata
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Pull Request Labeler"

on: [pull_request_target]

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
Analyze:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/test.yml.inactive
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Test (E2E)

on:
push:
branches:
- react-rewrite

pull_request:
branches:
- react-rewrite

jobs:
build:
name: Test (${{ matrix.node-version }})
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./react/ucmacm-website

strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Configure Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Get Yarn Cache Directory Path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache Yarn
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-test-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install Dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn install

- name: Running Test Script on Angular Application
run: |
yarn test --browsers=ChromeHeadless --watch=false --code-coverage

0 comments on commit 853eefe

Please sign in to comment.