Skip to content

Commit

Permalink
ci: use github actions for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
coldlink committed Jan 5, 2022
1 parent 85ec804 commit 98b2a4c
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 36 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,20 @@
name: CI
on: push
jobs:
CI:
name: Continuous Integration
runs-on: ubuntu-latest
permissions:
# required by guardian/actions-assume-aws-role
id-token: write
contents: read
steps:
- uses: actions/checkout@v2
- uses: guardian/actions-assume-aws-role@v1.0.0
with:
awsRoleToAssume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
- uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: ./ci.sh
12 changes: 0 additions & 12 deletions .github/workflows/jest.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/lint.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/typescript.yml

This file was deleted.

12 changes: 12 additions & 0 deletions ci.sh
Expand Up @@ -2,7 +2,19 @@

set -ae

# This block can be removed once everyone has rebase their branches to main
if [[ ! -z "${TEAMCITY_VERSION}" ]]; then
echo "Running in TeamCity. Nope!"
exit 0
fi

# Don't remove this line as it's used to number the build based on the
# last build number in teamcity
LAST_TEAMCITY_BUILD=5000
export GITHUB_RUN_NUMBER=$(( $GITHUB_RUN_NUMBER + $LAST_TEAMCITY_BUILD ))

yarn install --frozen-lockfile
yarn lint
yarn test
yarn build
yarn riffraff

0 comments on commit 98b2a4c

Please sign in to comment.