From 5742a7b7ff059c5013aafcf3894bd0cbfdaa7f6c Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Fri, 9 Aug 2024 16:02:09 -0400 Subject: [PATCH] Create build-web.yml --- .github/workflows/build-web.yml | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build-web.yml diff --git a/.github/workflows/build-web.yml b/.github/workflows/build-web.yml new file mode 100644 index 0000000..8b04e57 --- /dev/null +++ b/.github/workflows/build-web.yml @@ -0,0 +1,35 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "trunk" branch + push: + branches: [ "trunk" ] + pull_request: + branches: [ "trunk" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + flutter-version-file: pubspec.yaml # path to pubspec.yaml + - run: flutter --version + - run: flutter pub get + - run: flutter test + - run: flutter build web