From 47cfcb430b8e19ee3f43d638d47ae0997a9d0590 Mon Sep 17 00:00:00 2001 From: KIMSEONGMIN <128333586+Brian0KIM@users.noreply.github.com> Date: Thu, 21 Nov 2024 14:46:43 +0900 Subject: [PATCH] github workflows --- .github/workflows/backend.yaml | 26 ++++++++++++++++++++++++++ .github/workflows/df | 1 - .github/workflows/frontend.yaml | 26 ++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/backend.yaml delete mode 100644 .github/workflows/df create mode 100644 .github/workflows/frontend.yaml diff --git a/.github/workflows/backend.yaml b/.github/workflows/backend.yaml new file mode 100644 index 0000000..d94b516 --- /dev/null +++ b/.github/workflows/backend.yaml @@ -0,0 +1,26 @@ +name: Backend CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm test \ No newline at end of file diff --git a/.github/workflows/df b/.github/workflows/df deleted file mode 100644 index 8b13789..0000000 --- a/.github/workflows/df +++ /dev/null @@ -1 +0,0 @@ - diff --git a/.github/workflows/frontend.yaml b/.github/workflows/frontend.yaml new file mode 100644 index 0000000..3c742e1 --- /dev/null +++ b/.github/workflows/frontend.yaml @@ -0,0 +1,26 @@ +name: Frontend CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '2.5.3' + + - name: Install dependencies + run: flutter pub get + + - name: Run tests + run: flutter test \ No newline at end of file