diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 3f0e8d8..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,81 +0,0 @@ -name: CI - -on: [push, pull_request] - -permissions: - contents: read - -jobs: - test: - env: - MIX_ENV: test - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - with: - persist-credentials: false - - - uses: erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124 # v1.24.1 - with: - otp-version: 27.3.4.12 - elixir-version: 1.18.1 - - - run: mix deps.get - - run: mix format --check-formatted - - run: mix deps.unlock --check-unused - - run: MIX_ENV=test mix compile --warnings-as-errors - - run: mix test - - docker: - name: Docker - runs-on: ubuntu-24.04-arm - - permissions: - contents: 'read' - id-token: 'write' - - env: - IMAGE_NAME: 'diff' - PROJECT_ID: 'hexpm-prod' - SERVICE_ACCOUNT: ${{ secrets.GCLOUD_SERVICE_ACCOUNT }} - WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.GCLOUD_WORKFLOW_IDENTITY_POOL_PROVIDER }} - - steps: - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - with: - persist-credentials: false - - - name: Set short git commit SHA - run: echo "COMMIT_SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 - - - name: Google auth - id: auth - uses: 'google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093' # v3.0.0 - if: ${{ github.event_name != 'pull_request' && env.SERVICE_ACCOUNT != '' }} - with: - token_format: 'access_token' - project_id: ${{ env.PROJECT_ID }} - service_account: ${{ env.SERVICE_ACCOUNT }} - workload_identity_provider: ${{ env.WORKLOAD_IDENTITY_PROVIDER }} - - - name: Docker Auth - id: docker-auth - uses: 'docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0' # v4.4.0 - if: ${{ github.event_name != 'pull_request' && env.SERVICE_ACCOUNT != '' }} - with: - registry: gcr.io - username: 'oauth2accesstoken' - password: '${{ steps.auth.outputs.access_token }}' - - - name: Build and push - id: build - uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 - with: - platforms: linux/arm64 - tags: gcr.io/${{ env.PROJECT_ID }}/${{ env.IMAGE_NAME }}:${{ env.COMMIT_SHORT_SHA }} - push: ${{ github.event_name != 'pull_request' && env.SERVICE_ACCOUNT != '' }} - cache-from: type=gha - cache-to: type=gha,mode=max diff --git a/README.md b/README.md index 360c278..bf3c7ee 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,8 @@ # Diff -Website to display diffs between Hex package versions. - -## Contributing - -### Setup - -1. Run `mix setup` to install Hex and NPM dependencies -2. Run `mix test` -3. Run `mix phx.server` and visit [http://localhost:4004/](http://localhost:4004/) - -### Updating dependencies - -If Hex or NPM dependencies are outdated run `mix setup` again. +This repository is archived. Hex package diffs are maintained as part of +[hexpm/hexpm](https://github.com/hexpm/hexpm): its web interface and background +processing both run in the Hexpm application. ## License