Migrate injected client to package:web #897
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A CI workflow to run the Dart Code Metrics analyzer (https://dcm.dev). | |
name: Dart Code Metrics | |
on: | |
pull_request: | |
types: [synchronize, opened, reopened] | |
branches: | |
- main | |
jobs: | |
dcm: | |
name: Dart Code Metrics | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install DCM | |
run: | | |
sudo apt-get update | |
wget -qO- https://dcm.dev/pgp-key.public | sudo gpg --dearmor -o /usr/share/keyrings/dcm.gpg | |
echo 'deb [signed-by=/usr/share/keyrings/dcm.gpg arch=amd64] https://dcm.dev/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list | |
sudo apt-get update | |
sudo apt-get install dcm=1.16.2-1 # To avoid errors add `-1` (build number) to the version | |
sudo chmod +x /usr/bin/dcm | |
- name: Setup Dart SDK | |
uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 | |
with: | |
sdk: dev | |
- id: checkout | |
name: Checkout repository | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
with: | |
ref: "${{ github.event.pull_request.head.sha }}" | |
- id: dwds_pub_upgrade | |
name: dwds; dart pub upgrade | |
run: dart pub upgrade | |
if: "always() && steps.checkout.conclusion == 'success'" | |
working-directory: dwds | |
- name: Run DCM on DWDS | |
run: dcm analyze lib | |
working-directory: dwds |