Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
13963c5
Add first CI/CD workflow
hisyamjaapa-devops Jul 14, 2026
63dc4b4
Fix workflow YAML syntax
hisyamjaapa-devops Jul 14, 2026
2e6f278
Configure workflow for pull requests
hisyamjaapa-devops Jul 14, 2026
73f9385
Merge pull request #1 from hisyamjaapa-devops/amali2-cicd
hisyamjaapa-devops Jul 14, 2026
c7e236d
Add GitHub Pages build and deployment
hisyamjaapa-devops Jul 14, 2026
94e6874
Merge pull request #2 from hisyamjaapa-devops/amali4-pages
hisyamjaapa-devops Jul 14, 2026
29d63af
Amali5: add GitHub Pages Permission
hisyamjaapa-devops Jul 16, 2026
8da8d4b
Merge pull request #3 from hisyamjaapa-devops/amali5-permissions
hisyamjaapa-devops Jul 16, 2026
da0769f
Merge remote-tracking branch 'upstream/main'
hisyamjaapa-devops Jul 16, 2026
8cc740c
pre-flight test
hisyamjaapa-devops Jul 16, 2026
c549183
Merge pull request #4 from hisyamjaapa-devops/add-test
hisyamjaapa-devops Jul 16, 2026
a9fcecf
empty name
hisyamjaapa-devops Jul 16, 2026
5a36bba
run tests on pull requests
hisyamjaapa-devops Jul 16, 2026
70a6ee1
baiki nama ship
hisyamjaapa-devops Jul 18, 2026
8d3822c
deploy only from main
hisyamjaapa-devops Jul 18, 2026
cb77fa8
Merge pull request #5 from hisyamjaapa-devops/add-test
hisyamjaapa-devops Jul 18, 2026
75c535a
separate test job
hisyamjaapa-devops Jul 18, 2026
abec77a
Merge pull request #6 from hisyamjaapa-devops/amali6-job-structure
hisyamjaapa-devops Jul 18, 2026
bb8e863
pecah job test + deploy
hisyamjaapa-devops Jul 19, 2026
90e22b6
Merge pull request #7 from hisyamjaapa-devops/split-jobs
hisyamjaapa-devops Jul 19, 2026
387c09c
Add report workflow
hisyamjaapa-devops Jul 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Ship It
on:
push:
branches: [main]
pull_request:
branches: [main]

# Amali 5: permission untuk deploy GitHub Pages
permissions:
pages: write
id-token: write
contents: read

concurrency:
group: pages
cancel-in-progress: true

# The ship app lives in launchpad/ in the learner fork; run every step there.
defaults:
run:
working-directory: launchpad

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 20
cache: npm
cache-dependency-path: launchpad/package-lock.json
- run: npm clean-install
- run: npm run test # node scripts/preflight.mjs — a bad ship.config.json ABORTS here

deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: test # deploy only runs if the pre-flight gate is green
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 20
cache: npm
cache-dependency-path: launchpad/package-lock.json
- run: npm clean-install
- run: npm run build
env:
VITE_CALLSIGN: ${{ github.actor }}
- uses: actions/upload-pages-artifact@v5
with:
path: launchpad/dist
- id: deploy
uses: actions/deploy-pages@v5
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Generate Report

on:
workflow_dispatch:

jobs:
report:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run report
run: bash scripts/report.sh
env:
BOARD_URL: ${{ vars.BOARD_URL }}
SHIPIT_TOKEN: ${{ secrets.SHIPIT_TOKEN }}
2 changes: 1 addition & 1 deletion launchpad/ship.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"shipName": "Nebula Runner",
"color": "22d3ee",
"color": "#22d3ee",
"shipModel": "fighter",
"emblem": "comet"
}