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

[OPS-1448] Replace buildkite with github actions #99

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions .buildkite/pipeline.yml

This file was deleted.

73 changes: 73 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# SPDX-FileCopyrightText: 2022 Serokell <https://serokell.io>
#
# SPDX-License-Identifier: MPL-2.0

name: CI

on:
push:

jobs:
validate:
runs-on: [self-hosted, nix]
steps:
- uses: actions/checkout@v3

- name: check trailing whitespaces
run: nix build -L .#checks.x86_64-linux.trailing-whitespace

- name: shellcheck
run: nix build -L .#checks.x86_64-linux.shellcheck
if: success() || failure()
dcastro marked this conversation as resolved.
Show resolved Hide resolved

- name: validate cabal files
run: nix develop .#ci -c ./scripts/validate-cabal-files.sh
if: success() || failure()

- name: stylish
run: nix build -L .#checks.x86_64-linux.stylish-haskell
if: success() || failure()

- name: lint
run: nix build -L .#checks.x86_64-linux.hlint
if: success() || failure()

# not working for unknown reason (OPS-1487)
# - name: xrefcheck
# run: nix run github:serokell/xrefcheck
# if: success() || failure()

- name: REUSE lint
run: nix build -L .#checks.x86_64-linux.reuse-lint
if: success() || failure()

build:
runs-on: [self-hosted, nix]
steps:
- uses: actions/checkout@v3

- name: build
run: nix build -L .#checks.x86_64-linux.build-all

test:
runs-on: [self-hosted, nix]
needs: [build]
steps:
- uses: actions/checkout@v3

- name: test
run: nix build -L .#checks.x86_64-linux.test

- name: doctest
run: nix develop .#doctest -c runghc doctest/doctests.hs
if: success() || failure()

deploy:
runs-on: [self-hosted, nix]
needs: [test]
if: ${{ github.ref == 'refs/heads/staging' }}
steps:
- uses: actions/checkout@v3

- name: deploy staging
run: nix develop .#ci -c deploy .#staging --ssh-user deploy --skip-checks