Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track changes from upstream #5

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Track changes from upstream #5

wants to merge 6 commits into from

Conversation

AlekSi
Copy link
Member

@AlekSi AlekSi commented Feb 19, 2025

No description provided.

uses: actions/checkout@v4

- name: Setup Go
uses: FerretDB/github-actions/setup-go@main

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Go' step
Uses Step
uses 'FerretDB/github-actions/setup-go' with ref 'main', not a pinned commit hash
@mergify mergify bot assigned AlekSi Feb 20, 2025
uses: actions/checkout@v4

- name: Setup Go
uses: FerretDB/github-actions/setup-go@main

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Packages' step
Uses Step
uses 'FerretDB/github-actions/setup-go' with ref 'main', not a pinned commit hash
Comment on lines +28 to +59
name: Test
runs-on: ubuntu-24.04
timeout-minutes: 15

# Do not run this job in parallel for any PR change or branch push.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

if: github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'not ready')

steps:
# TODO https://github.com/FerretDB/github-actions/issues/211
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Go
uses: FerretDB/github-actions/setup-go@main

- name: Run tests
run: |
cd ferretdb_packaging
go mod tidy
go mod verify
go test ./...

- name: Check dirty
if: always()
run: |
git status --untracked-files --ignored
git status
git diff --exit-code

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
Comment on lines +34 to +83
name: Build .debs (${{ matrix.os }}, Pg${{ matrix.pg }})
runs-on: ubuntu-24.04
timeout-minutes: 40

if: >
github.event_name != 'pull_request' ||
(
!contains(github.event.pull_request.labels.*.name, 'not ready') &&
contains(github.event.pull_request.labels.*.name, 'packages')
)

strategy:
fail-fast: false
matrix:
os: [deb11, deb12, ubuntu20.04, ubuntu22.04, ubuntu24.04]
pg: [15, 16]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Go
uses: FerretDB/github-actions/setup-go@main

- name: Define Debian package version
id: version
run: |
cd ferretdb_packaging
go mod tidy
go mod verify
go run ./defineversion --control-file ../pg_documentdb_core/documentdb_core.control

- name: Build ${{ steps.version.outputs.version }}
if: steps.version.outputs.version != ''
run: ./ferretdb_packaging/build_packages.sh --os ${{ matrix.os }} --pg ${{ matrix.pg }} --version ${{ steps.version.outputs.version }} --test-clean-install

- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.pg }}-${{ steps.version.outputs.version }}
path: packaging/*.deb
retention-days: 1
if-no-files-found: error
compression-level: 0
overwrite: false

- name: Check dirty
run: |
git status
git diff --exit-code

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants