-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor yaml string format for consistency.
- Loading branch information
1 parent
7a3a78d
commit 79abf6c
Showing
12 changed files
with
87 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,15 @@ on: | |
- develop | ||
- production | ||
paths: | ||
- 'backend/**' | ||
- '.github/workflows/backend.yml' | ||
- backend/** | ||
- .github/workflows/backend.yml | ||
pull_request: | ||
branches: | ||
- develop | ||
- production | ||
paths: | ||
- 'backend/**' | ||
- '.github/workflows/backend.yml' | ||
- backend/** | ||
- .github/workflows/backend.yml | ||
|
||
defaults: | ||
run: | ||
|
@@ -28,14 +28,13 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
node-version: 18 | ||
- name: Restore npm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Lint | ||
|
@@ -47,14 +46,13 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
node-version: 18 | ||
- name: Restore npm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
restore-keys: ${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Run site locally | ||
|
@@ -80,14 +78,13 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
node-version: 18 | ||
- name: Restore npm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
restore-keys: ${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build | ||
|
@@ -113,13 +110,12 @@ jobs: | |
- name: Set up Python 3.10 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.10' | ||
python-version: 3.10 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
pip- | ||
key: pip-${{ hashFiles(**/requirements.txt) }} | ||
restore-keys: pip- | ||
- run: pip install -r worker/requirements.txt | ||
- run: pytest | ||
build_worker: | ||
|
@@ -129,14 +125,13 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
node-version: 18 | ||
- name: Restore npm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build worker container | ||
|
@@ -152,14 +147,13 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
node-version: 18 | ||
- name: Restore npm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
|
@@ -203,14 +197,13 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
node-version: 18 | ||
- name: Restore npm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,16 @@ on: | |
branches: | ||
- develop | ||
paths: | ||
- 'docs/**' | ||
- 'backend/**' | ||
- '.github/workflows/docs.yml' | ||
- docs/** | ||
- backend/** | ||
- .github/workflows/docs.yml | ||
pull_request: | ||
branches: | ||
- develop | ||
paths: | ||
- 'docs/**' | ||
- 'backend/**' | ||
- '.github/workflows/docs.yml' | ||
- docs/** | ||
- backend/** | ||
- .github/workflows/docs.yml | ||
|
||
defaults: | ||
run: | ||
|
@@ -28,28 +28,17 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
node-version: 18 | ||
- name: Restore npm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
restore-keys: ${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install -y libvips-dev glib2.0-dev | ||
- run: npm ci | ||
- name: Lint | ||
run: npm run lint | ||
- name: Build | ||
run: npm run build | ||
# - name: Deploy to GitHub Pages | ||
# if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
# uses: crazy-max/[email protected] | ||
# with: | ||
# keep_history: false | ||
# target_branch: gh-pages | ||
# build_dir: docs/public | ||
# fqdn: docs.crossfeed.cyber.dhs.gov | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.