From 48466a42aea62ea93e1509cd495f73d29d239947 Mon Sep 17 00:00:00 2001 From: x80486 Date: Tue, 5 Aug 2025 17:03:14 -0400 Subject: [PATCH] Enable GitHub Actions and Setup Continuous Integration Pipeline --- .github/workflows/pipeline.yaml | 48 +++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/pipeline.yaml diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml new file mode 100644 index 0000000..4c8099e --- /dev/null +++ b/.github/workflows/pipeline.yaml @@ -0,0 +1,48 @@ +name: Automates the Verification, Testing, and Building Process + +env: + NPM_CONFIG_LOGLEVEL: "warn" + NPM_CONFIG_PREFER_OFFLINE: "true" + +jobs: + verification: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22.x + - name: Install dependencies + run: npm clean-install + - name: Lint code + run: npm run lint + + # TODO: Run tests + + assembly: + needs: verification + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22.x + - name: Install dependencies + run: npm clean-install + - name: Lint code + run: npm run build + +on: + pull_request: + branches: + - master + push: + branches: + - master + +permissions: + contents: read