Skip to content

Commit

Permalink
update branch policies and pipelines for pull requests on archive
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Holt committed Mar 6, 2024
1 parent 8a2bf65 commit 65ae075
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci-validate-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Validate Platforms/Browsers
on:
push:
branches:
- master
- archives/fast-element-1

pull_request:
branches:
- master
- archives/fast-element-1

schedule:
- cron: 0 7 * * 3
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:

- if: ${{ github.event_name == 'pull_request' }}
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master
git fetch --no-tags --prune --depth=1 origin +refs/heads/archives/fast-element-1:refs/remotes/origin/archives/fast-element-1
- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down Expand Up @@ -65,18 +65,18 @@ jobs:

- name: Run tests in changed packages
if: ${{ github.event_name == 'pull_request' }}
run: yarn lerna run test --stream --since=origin/master
run: yarn lerna run test --stream --since=origin/archives/fast-element-1

- name: Run tests in all Lerna Packages
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/archives/fast-element-1' }}
run: yarn lerna run test --stream

- name: Initialize CodeQL
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/archives/fast-element-1' }}
uses: github/codeql-action/init@v1
with:
languages: javascript, typescript

- name: Perform CodeQL Analysis
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/archives/fast-element-1' }}
uses: github/codeql-action/analyze@v1
4 changes: 2 additions & 2 deletions .github/workflows/ci-validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Validate PRs
on:
push:
branches:
- master
- archives/fast-element-1
- releases/*
pull_request:
branches:
- master
- archives/fast-element-1
- releases/*
- features/*

Expand Down
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"files.insertFinalNewline": false
},
"[markdown]": {
"editor.quickSuggestions": false,
"editor.quickSuggestions": {
"comments": "off",
"strings": "off",
"other": "off"
},
"editor.wordWrap": "off",
"editor.wordWrapColumn": 90,
"files.insertFinalNewline": false,
Expand Down

0 comments on commit 65ae075

Please sign in to comment.