Merge pull request 'ci: workflow base de Gitea Actions' (#1) from ci/gitea-actions into main
ci / static (push) Successful in 12s
ci / static (push) Successful in 12s
This commit was merged in pull request #1.
This commit is contained in:
commit
2a489bdbfa
1 file changed
+33
@@ -0,0 +1,33 @@
|
||||
# Gitea Actions — pacman (site estático: index.html, css/, js/). Sem build, sem deploy
|
||||
# (o deploy de produção continua no CI do photoreport.pt-frontend).
|
||||
name: ci
|
||||
|
||||
'on':
|
||||
push:
|
||||
branches: [main, master]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
static:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Required files
|
||||
run: |
|
||||
set -euo pipefail
|
||||
test -f index.html
|
||||
test -f css/style.css
|
||||
test -f js/game.js
|
||||
grep -q 'js/game.js' index.html
|
||||
|
||||
- name: Setup Node.js 24.22.1
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "24.22.1"
|
||||
|
||||
# ATENÇÃO: js/game.js tem hoje um erro de sintaxe na linha 471 (`const angle = Math.0;`),
|
||||
# por isso este passo falharia já. Descomentar depois de corrigir o ficheiro.
|
||||
# - name: JavaScript syntax
|
||||
# run: git ls-files -z '*.js' | xargs -0 -r -n1 node --check
|
||||
Reference in new issue
Block a user