Skip to content

Commit

Permalink
Updated dependencies and updated github workflows. (#29)
Browse files Browse the repository at this point in the history
* Updated dependencies and updated github workflows.

* Updated version of the main github action.

* Added dependabot config file.

* Moved code coverage in the test to a separate command.
  • Loading branch information
dmundra committed Sep 21, 2024
1 parent beae68e commit a56886b
Show file tree
Hide file tree
Showing 10 changed files with 667 additions and 538 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 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"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
9 changes: 0 additions & 9 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# Workflows

## backlog-issues.yaml

Automatically place new/reopened issues in to the project board.

## pre-commit.yaml

Run pre-commit hooks to clean up site based on configurations in .pre-commit-config.yaml include searching and replacing smart quotes defined in .pre-commit-search-and-replace.yaml.

## tests.yaml

Run our tests when we submit a pull request.
Expand All @@ -23,4 +15,3 @@ Tests HTML output using pa11y-ci and axe.
# References

- https://github.blog/2021-04-28-use-github-actions-manage-docs/#why-use-github-actions-for-project-management
- https://pre-commit.com/
2 changes: 1 addition & 1 deletion .github/workflows/a11y.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout source.
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install dependencies.
run: npm ci
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/backlog-issues.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:

steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false
- run: sed -i 's/{% render %}/render/g' openacr/uswds/README.md
- run: sed -i 's/{% include %}/include/g' openacr/uswds/README.md
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.3
uses: JamesIves/github-pages-deploy-action@v4.6.4
with:
BRANCH: gh-pages
FOLDER: openacr
4 changes: 2 additions & 2 deletions .github/workflows/openacr-export.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:

steps:
- name: Checkout source.
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Download output.
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: openacr-export
path: |
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/pre-commit.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout source.
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install dependencies.
run: npm ci
Expand Down
Loading

0 comments on commit a56886b

Please sign in to comment.