Skip to content

Commit

Permalink
[OPS-1448] Replace buildkite with github actions
Browse files Browse the repository at this point in the history
Problem: The current buildkite-based ci is being replaced with github actions.

Solution: Add github ci config, remove buildkite config.
  • Loading branch information
Sereja313 committed Sep 1, 2023
1 parent c28b613 commit f2ebc3f
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 44 deletions.
44 changes: 0 additions & 44 deletions .buildkite/pipeline.yml

This file was deleted.

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

name: CI

on:
pull_request:
push:
- master
- staging

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()

- 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()

- 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

0 comments on commit f2ebc3f

Please sign in to comment.