Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Handbook CI/CD files, disabling some steps for now #6

Merged
merged 2 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/dependabot.yml
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"]
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
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]
53 changes: 53 additions & 0 deletions .github/workflows/codeql-analysis.yml
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
93 changes: 93 additions & 0 deletions .github/workflows/pull-request.yml
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
27 changes: 27 additions & 0 deletions .github/workflows/stale.yml
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/stale@v4.0.0
# 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.