Nightly #809
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
name: Nightly | |
on: | |
schedule: | |
- cron: "0 3 * * *" | |
workflow_dispatch: ~ | |
permissions: read-all | |
jobs: | |
test: | |
name: Test against latest dependency versions (${{ matrix.name }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: MacOS | |
os: macos-14 | |
- name: Ubuntu | |
os: ubuntu-24.04 | |
- name: Windows | |
os: windows-2022 | |
steps: | |
- name: Harden runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
disable-sudo: false | |
egress-policy: block | |
allowed-endpoints: > | |
actions-results-receiver-production.githubapp.com:443 | |
api.github.com:443 | |
artifactcache.actions.githubusercontent.com:443 | |
azure.archive.ubuntu.com:80 | |
github.com:443 | |
gitlab.com:443 | |
nodejs.org:443 | |
objects.githubusercontent.com:443 | |
registry.npmjs.org:443 | |
- name: Checkout repository | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
with: | |
persist-credentials: false | |
- name: Install Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
cache: npm | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
run: npm clean-install | |
- name: Bump runtime dependencies to latest compatible | |
run: | | |
npm update --omit dev --omit optional --omit peer | |
npm install | |
- name: Install csh | |
if: ${{ matrix.name == 'Ubuntu' }} | |
run: sudo apt-get --assume-yes install csh | |
- name: Install Zsh | |
if: ${{ matrix.name == 'Ubuntu' }} | |
run: sudo apt-get --assume-yes install zsh | |
- name: Run integration tests | |
run: npm run test:integration | |
- name: Run end-to-end tests | |
run: npm run test:e2e | |
tooling: | |
name: Tool update | |
runs-on: ubuntu-24.04 | |
permissions: | |
contents: write # To push a commit | |
pull-requests: write # To open a Pull Request | |
steps: | |
- name: Harden runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
actions-results-receiver-production.githubapp.com:443 | |
api.github.com:443 | |
github.com:443 | |
objects.githubusercontent.com:443 | |
- name: Create automation token | |
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 | |
id: automation-token | |
with: | |
app_id: ${{ secrets.AUTOMATION_APP_ID }} | |
private_key: ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }} | |
- name: Update tooling | |
uses: ericcornelissen/tool-versions-update-action/pr@040e69dec221145526b552d9a74e410851aaed23 # v1.1.3 | |
with: | |
commit-message: Bump {{updated-tools}} from {{updated-old-versions}} to {{updated-new-versions}} | |
labels: dependencies | |
max: 1 | |
pr-body: | | |
Bumps {{updated-tools}} from {{updated-old-versions}} to {{updated-new-versions}}. | |
--- | |
_This Pull Request was created using the [tool-versions-update-action]._ | |
[tool-versions-update-action]: https://github.com/ericcornelissen/tool-versions-update-action | |
pr-title: Bump {{updated-tools}} from {{updated-old-versions}} to {{updated-new-versions}} | |
token: ${{ steps.automation-token.outputs.token }} |