-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into solr-v9-support
- Loading branch information
Showing
29 changed files
with
2,436 additions
and
34 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,63 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
# Sample workflow for building and deploying a Jekyll site to GitHub Pages | ||
name: Deploy Jekyll site to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["master"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 | ||
with: | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
cache-version: 0 # Increment this number if you need to re-download cached gems | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v5 | ||
- name: Build with Jekyll | ||
# Outputs to the './_site' directory by default | ||
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" | ||
env: | ||
JEKYLL_ENV: production | ||
- name: Upload artifact | ||
# Automatically uploads an artifact from the './_site' directory by default | ||
uses: actions/upload-pages-artifact@v3 | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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,29 @@ | ||
name: Run Cypress tests | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true # runs 'bundle install' | ||
|
||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: 'package.json' | ||
|
||
- name: Cypress run | ||
uses: cypress-io/github-action@v6 # runs 'npm ci' | ||
with: | ||
start: npm start | ||
wait-on: 'http://localhost:4000' |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/*/.DS_Store | ||
_site | ||
.jekyll-cache | ||
node_modules |
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 @@ | ||
engine-strict=true |
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 @@ | ||
20.17 |
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 @@ | ||
3.2.0 |
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,88 @@ | ||
# Run the Cypress end-to-end test suite | ||
|
||
Running the Cypress tests depends on: | ||
|
||
- Ruby for building and serving the site | ||
- Node.js for running Cypress while the site is being served | ||
|
||
This documentation assumes your machine has git installed and GitHub credentials configured. See the git [Downloads page](https://git-scm.com/downloads) for help installing git, and [Connecting to GitHub with SSH](https://docs.github.com/en/authentication/connecting-to-github-with-ssh) for help configuring shell access to GitHub. | ||
|
||
## Clone this repo | ||
|
||
First clone this repository to your machine then move into it: | ||
|
||
```sh | ||
git clone [email protected]:archivesspace/tech-docs.git | ||
|
||
cd tech-docs | ||
``` | ||
|
||
**All of the remaining commands within this document should be run from the tech-docs root directory.** | ||
|
||
## Setup the Ruby environment | ||
|
||
The currently required Ruby version for this project is listed in the [.ruby-version](./.ruby-version) file. | ||
|
||
It is strongly recommended to use a Ruby version manager to be able to switch to any version that a given project uses. | ||
|
||
The most popular version manager available for macOS and Linux is `rbenv`. You can find the installation guide here [https://github.com/rbenv/rbenv#readme](https://github.com/rbenv/rbenv#readme). | ||
|
||
For Windows, a separate `rbenv` installer exists here: [https://github.com/RubyMetric/rbenv-for-windows#readme](https://github.com/RubyMetric/rbenv-for-windows#readme). | ||
|
||
If you wish to use a different manager or installation method, you can choose one of the following: [https://www.ruby-lang.org/en/documentation/installation/](https://www.ruby-lang.org/en/documentation/installation/) | ||
|
||
### Install Ruby | ||
|
||
Install Ruby using `rbenv`: | ||
|
||
```sh | ||
rbenv install | ||
``` | ||
|
||
### Install Ruby gems | ||
|
||
Install the project specific Ruby dependencies listed in [Gemfile](./Gemfile) which are used for building and serving the site. | ||
|
||
```sh | ||
bundle install | ||
``` | ||
|
||
## Set up the Node.js environment | ||
|
||
The currently required Node.js version for this project is listed in [.nvmrc](./.nvmrc) and under the `engines.node` key in [package.json](./package.json). | ||
|
||
It is strongly recommended to use a Node.js version manager to be able to switch to any version that a given project uses. | ||
|
||
The most popular version manager available for macOS and Linux is `nvm`. You can find the installation guide here [https://github.com/nvm-sh/nvm](https://github.com/nvm-sh/nvm). | ||
|
||
A popular version manager for Windows is `nvm-windows`. See the installation guide here [https://github.com/coreybutler/nvm-windows](https://github.com/coreybutler/nvm-windows). | ||
|
||
### Install Node.js | ||
|
||
Install Node.js using `nvm`: | ||
|
||
```sh | ||
nvm install | ||
``` | ||
|
||
### Install Node modules | ||
|
||
Install the project specific Node dependencies listed in [package.json](./package.json) which are used for running the tests: | ||
|
||
```sh | ||
npm install | ||
``` | ||
|
||
## Run the tests locally | ||
|
||
Run the tests localy by first serving the site: | ||
|
||
```sh | ||
npm start | ||
``` | ||
|
||
Then **in a different terminal** initiate the tests: | ||
|
||
```sh | ||
npm test | ||
``` |
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
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,76 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ site.lang | default: "en-US" }}"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
{% seo %} | ||
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}"> | ||
<!--[if lt IE 9]> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script> | ||
<![endif]--> | ||
{% include head-custom.html %} | ||
</head> | ||
<body> | ||
<div class="wrapper"> | ||
<header> | ||
<h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repository_name }}</a></h1> | ||
|
||
{% if site.logo %} | ||
<img src="{{site.logo | relative_url}}" alt="Logo" /> | ||
{% endif %} | ||
|
||
<p>{{ site.description | default: site.github.project_tagline }}</p> | ||
|
||
{% if site.github.is_project_page %} | ||
<p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ site.github.repository_nwo }}</small></a></p> | ||
{% endif %} | ||
|
||
{% if site.github.is_user_page %} | ||
<p class="view"><a href="{{ site.github.owner_url }}">View My GitHub Profile</a></p> | ||
{% endif %} | ||
|
||
{% if site.show_downloads %} | ||
<ul class="downloads"> | ||
<li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li> | ||
<li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li> | ||
<li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li> | ||
</ul> | ||
{% endif %} | ||
|
||
<p> | ||
<a | ||
href="{{ site.github.edit_base_url }}{{ page.path }}" | ||
title="Edit {{ page.path }} on GitHub" | ||
> | ||
Edit this page on GitHub | ||
<small>{{ page.path }}</small> | ||
</a> | ||
</p> | ||
|
||
<p> | ||
<a | ||
href="{{ site.jira_issues }}" | ||
title="Report issue with {{ page.path }} on Jira" | ||
> | ||
Report issue on Jira | ||
<small>{{ page.path }}</small> | ||
</a> | ||
</p> | ||
</header> | ||
<section> | ||
|
||
{{ content }} | ||
|
||
</section> | ||
<footer> | ||
{% if site.github.is_project_page %} | ||
<p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p> | ||
{% endif %} | ||
<p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p> | ||
</footer> | ||
</div> | ||
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script> | ||
</body> | ||
</html> |
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { defineConfig } from 'cypress'; | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
setupNodeEvents() {} | ||
} | ||
}); |
Oops, something went wrong.