diff --git a/.github/workflows/new-ci.yml b/.github/workflows/new-ci.yml new file mode 100644 index 00000000..ca146582 --- /dev/null +++ b/.github/workflows/new-ci.yml @@ -0,0 +1,39 @@ +name: My FIRST CI PIPELINE +run-name: "${{ github.event.head_commit.message }} (${{ github.sha }})" + +on: + pull_request: + push: + branches: + - olt + +permissions: + write-all +jobs: + build: + name: Build Frontend Artifact + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Node 16 + uses: actions/setup-node@v3 + with: + node-version: 16.x + + - name: Cache Node Modules + uses: actions/cache@v3 + with: + path: frontend/node_modules + key: fe-node-${{ hashFiles('frontend/package-lock.json') }} + + - name: Install dependencies + run: cd frontend && npm i + + - name: Compile code and build + run: cd frontend && npm build + + - name: Upload Artifact + uses: actions/upload-pages-artifact@v1 + with: + path: frontend/build \ No newline at end of file