From e2603ca1f80ebd7e9680b00e4e7003f538de6c8a Mon Sep 17 00:00:00 2001 From: Matthew Nitschke Date: Thu, 28 Sep 2023 12:51:05 -0600 Subject: [PATCH] implemented github actions --- .github/PULL_REQUEST_TEMPLATE.md | 15 ++++++++ .github/dependabot.yml | 11 ++++++ .github/workflows/ci.yaml | 29 +++++++++++++++ Dockerfile | 3 +- skynet.yaml | 63 -------------------------------- 5 files changed, 56 insertions(+), 65 deletions(-) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yaml delete mode 100644 skynet.yaml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..4cf5c7e --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,15 @@ +## Motivation + + +## Changes + + +## Testing/QA Instructions + \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..1f6c687 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 + +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + groups: + gha-dependencies: + patterns: + - "*" \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..7076f44 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,29 @@ +name: CI + +on: + pull_request: + push: + branches: + - master + tags: + - '*' + +permissions: + contents: read + id-token: write + +jobs: + package: + runs-on: [self-hosted, small] + steps: + - uses: actions/checkout@v3 + - uses: Workiva/gha-dart/create-pub-package@v0.3.19 + + checks: + uses: Workiva/gha-dart/.github/workflows/checks.yaml@v0.3.19 + + unit-tests: + uses: Workiva/gha-dart/.github/workflows/test-unit.yaml@v0.3.19 + + semver-audit: + uses: Workiva/gha-dart/.github/workflows/semver-audit-dart.yaml@v0.3.15 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 300f0a0..449fd74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1 @@ -FROM drydock-prod.workiva.net/workiva/dart_build_image:3 as build - +FROM scratch \ No newline at end of file diff --git a/skynet.yaml b/skynet.yaml deleted file mode 100644 index 6c9767d..0000000 --- a/skynet.yaml +++ /dev/null @@ -1,63 +0,0 @@ -name: standard-dart-checks -description: Quality checks (analyze, format, dependency validator) -contact: 'Frontend Architecture / #support-frontend-architecture' -image: drydock.workiva.net/workiva/dart2_base_image:1 -size: large -timeout: eternal - -scripts: - - merge_branch.sh master - - timeout 5m dart pub get - - dart analyze - - dart run dart_dev format --check - - dart run dependency_validator - ---- - -name: semver-audit -description: Runs the semver-audit tool to check for minor and major changes -contact: 'Frontend Architecture / #support-frontend-architecture' - -image: drydock.workiva.net/workiva/dart2_base_image:1 -size: small -timeout: 300 - -scripts: - - merge_branch.sh master - - dart pub global activate --hosted-url https://pub.workiva.org semver_audit ^2.0.3 - - timeout 5m dart pub get - - semver_audit report - ---- - -name: unit-tests-dev -description: Runs unit tests compiled with DDC -contact: 'Frontend Architecture / #support-frontend-architecture' -image: drydock.workiva.net/workiva/dart_unit_test_image:1 -size: large -timeout: eternal - -artifacts: /testing/test-reports -test-reports: /testing/test-reports - -scripts: - - merge_branch.sh master - - timeout 5m dart pub get - - dart run dart_dev test --xunit - ---- - -name: unit-tests-release -description: Runs unit tests compiled with dart2js -contact: 'Frontend Architecture / #support-frontend-architecture' -image: drydock.workiva.net/workiva/dart_unit_test_image:1 -size: large -timeout: eternal - -artifacts: /testing/test-reports -test-reports: /testing/test-reports - -scripts: - - merge_branch.sh master - - timeout 5m dart pub get - - dart run dart_dev test --xunit --release