Build Caddyfile from snapshot versions provided by the homepage #28
Workflow file for this run
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
# @license AGPL-3.0-or-later | |
# | |
# Copyright(C) 2025 Hong Xu <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as | |
# published by the Free Software Foundation, either version 3 of the | |
# License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU Affero General Public License for more details. | |
# | |
# You should have received a copy of the GNU Affero General Public License | |
# along with this program. If not, see <https://www.gnu.org/licenses/>. | |
name: Runtime | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
jobs: | |
test: | |
name: Runtime | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/[email protected] | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 22 | |
cache: "npm" | |
- name: Install podman | |
run: sudo apt-get update && sudo apt-get install -y podman | |
- name: Build | |
run: npm run build | |
- name: Start the container | |
run: podman run --detach -p 3000:80 -p 3001:443 delpa-redirection-test-server | |
- name: Install npm dependencies | |
run: npm ci | |
- name: Run test | |
run: npm run test |