-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
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
Uses Step
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
Uses Step
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
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
No description provided.