forked from 18F/guides
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Handbook CI/CD files, disabling some steps for now
- Loading branch information
1 parent
8dc60b4
commit 975451a
Showing
5 changed files
with
197 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
ignore: | ||
- dependency-name: "*" | ||
# Ignore semver major updates. | ||
update-types: ["version-update:semver-major"] |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Changes proposed in this pull request: | ||
|
||
- | ||
- | ||
- | ||
|
||
## security considerations | ||
|
||
[Note the any security considerations here, or make note of why there are none] |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Commented out for now. Re-enable when the project is ready for it. | ||
|
||
#name: "CodeQL" | ||
# | ||
#on: | ||
# push: | ||
# branches: [main] | ||
# pull_request: | ||
# branches: [main] | ||
# schedule: | ||
# - cron: "20 22 * * 2" | ||
# | ||
#jobs: | ||
# analyze: | ||
# name: Analyze | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# actions: read | ||
# contents: read | ||
# security-events: write | ||
# | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# language: ["javascript"] | ||
# | ||
# steps: | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v3 | ||
# | ||
# - name: Initialize CodeQL | ||
# uses: github/codeql-action/init@v2 | ||
# with: | ||
# languages: ${{ matrix.language }} | ||
# | ||
# # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# # If this step fails, then you should remove it and run the build manually (see below) | ||
# - name: Autobuild | ||
# uses: github/codeql-action/autobuild@v2 | ||
# | ||
# # ℹ️ Command-line programs to run using the OS shell. | ||
# # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
# | ||
# # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# # and modify them (or add more) to build your code if your project | ||
# # uses a compiled language | ||
# | ||
# #- run: | | ||
# # make bootstrap | ||
# # make release | ||
# | ||
# - name: Perform CodeQL Analysis | ||
# uses: github/codeql-action/analyze@v2 |
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 |
---|---|---|
@@ -0,0 +1,93 @@ | ||
name: pull request | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
cache_key: ${{ steps.cache_key.outputs.cache_key }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- id: cache_key | ||
run: echo "cache_key=${{ hashFiles('**/**') }}-v1" >> "$GITHUB_OUTPUT" | ||
- uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
path: . | ||
key: ${{ steps.cache_key.outputs.cache_key }} | ||
- if: steps.cache.outputs.cache-hit != true | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- if: steps.cache.outputs.cache-hit != true | ||
run: npm install | ||
- if: steps.cache.outputs.cache-hit != true | ||
env: | ||
ELEVENTY_ENV: production | ||
run: npm run build | ||
|
||
# Disabling for now. Reenable when the project is ready. | ||
|
||
# validate_html: | ||
# needs: [build] | ||
# name: validate html | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/cache/restore@v3 | ||
# with: | ||
# key: ${{ needs.build.outputs.cache_key }} | ||
# path: . | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 18 | ||
# - run: npm run test:html-validation | ||
|
||
# validate_internal_links: | ||
# needs: [build] | ||
# name: validate internal links | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/cache/restore@v3 | ||
# with: | ||
# key: ${{ needs.build.outputs.cache_key }} | ||
# path: . | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 18 | ||
# - run: npm run test:internal-links | ||
|
||
# validate_links_use_helper: | ||
# needs: [build] | ||
# name: validate links use helper | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/cache/restore@v3 | ||
# with: | ||
# key: ${{ needs.build.outputs.cache_key }} | ||
# path: . | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 18 | ||
# - run: npm run test:prefixed-links | ||
|
||
# check_spelling: | ||
# needs: [build] | ||
# name: "Check Spelling" | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/cache/restore@v3 | ||
# with: | ||
# key: ${{ needs.build.outputs.cache_key }} | ||
# path: . | ||
# - uses: actions/setup-node@v3 | ||
# name: Setup node | ||
# with: | ||
# node-version: 18 | ||
# - name: Install cSpell | ||
# run: npm install -g cspell | ||
# - name: Run cSpell | ||
# run: cspell --config ./cSpell.json "pages/**/*.md" --no-progress |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Commented out for now. Re-enable when the project is ready for it. | ||
|
||
#name: Close inactive pull requests | ||
#on: | ||
# schedule: | ||
# - cron: 0 0 * * * | ||
# | ||
#jobs: | ||
# close-pulls: | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# pull-requests: write | ||
# steps: | ||
# - uses: actions/[email protected] | ||
# with: | ||
# repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
# days-before-issue-stale: -1 # disable making issues stale for now | ||
# days-before-pr-stale: 30 | ||
# days-before-pr-close: 14 | ||
# stale-pr-label: stale | ||
# stale-pr-message: > | ||
# This pull request has been inactive for 30 days. Is it still in | ||
# progress? If so, please comment, remove the "stale" label, or add | ||
# new changes. Otherwise, this pull request will be automatically | ||
# closed in 14 days. | ||
# close-pr-message: > | ||
# This pull request has been closed automatically due to inactivity. |