Skip to content

Commit

Permalink
Merge pull request #14 from florianldt/github-ci
Browse files Browse the repository at this point in the history
GitHub ci
  • Loading branch information
florianldt authored Sep 21, 2022
2 parents 4a1f129 + 6e03dc5 commit f3e2ac8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'test'
on:
pull_request:
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Install dependencies, audit, build, lint and test'
run: |
npm ci --ignore-scripts
npm run all
- name: 'Get message'
id: 'deploy-message'
run: |
echo "::set-output name=commit_msg::$(git log -1 --format=%B)"
echo "::set-output name=commit_sha::$(git log -1 --format=%H)"
- name: 'Slack Notification'
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://raw.githubusercontent.com/florianldt/jerome/master/media/slack-icon.jpg
SLACK_USERNAME: Alf
SLACK_MESSAGE: ${{ steps.deploy-message.outputs.commit_msg }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
Binary file added media/slack-icon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.1",
"description": "Auto localization for iOS",
"scripts": {
"all": "npm audit && npm run prebuild && npm run build && npm run lint && npm test",
"prebuild": "rimraf ./dist && node -p \"'export default ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
"build": "npm run prebuild && tsc",
"format": "prettier --write '**/*.ts'",
Expand Down

0 comments on commit f3e2ac8

Please sign in to comment.