Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ef85ae9

Browse files
committedMar 13, 2025··
Replace Travis CI with GitHub Actions
1 parent 589076a commit ef85ae9

File tree

4 files changed

+84
-96
lines changed

4 files changed

+84
-96
lines changed
 

‎.github/workflows/build-develop.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
push:
3+
branches: [develop]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- run: composer install
11+
- run: composer lint
12+
- run: cd private && corepack enable && yarn && yarn lint && cd ..
13+
build:
14+
runs-on: ubuntu-latest
15+
needs: lint
16+
permissions:
17+
contents: write
18+
steps:
19+
- uses: actions/checkout@v4
20+
- run: composer install --no-ansi --no-dev --no-interaction --no-plugins --no-progress --no-scripts --classmap-authoritative
21+
- run: composer du -o
22+
- run: cd private && corepack enable && yarn && yarn build && cd ..
23+
- run: zip -r humanity-content-security-policy-develop.zip ./ -x docs\* -x private\* -x vendor\* -x .\* -x CHANGELOG.md -x CODE_OF_CONDUCT.md -x composer.json -x composer.lock -x CONTRIBUTING.md -x LICENSE.md -x phpcs.xml -x SECURITY.md
24+
- uses: softprops/action-gh-release@v2
25+
with:
26+
draft: true
27+
files: humanity-content-security-policy-develop.zip
28+
target_commitish: main

‎.github/workflows/build-main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
push:
3+
branches: [main]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- run: composer install
11+
- run: composer lint
12+
- run: cd private && corepack enable && yarn && yarn lint && cd ..
13+
build:
14+
runs-on: ubuntu-latest
15+
needs: lint
16+
permissions:
17+
contents: write
18+
steps:
19+
- uses: actions/checkout@v4
20+
- run: composer install --no-ansi --no-dev --no-interaction --no-plugins --no-progress --no-scripts --classmap-authoritative
21+
- run: composer du -o
22+
- run: cd private && corepack enable && yarn && yarn build && cd ..
23+
- run: zip -r ../humanity-content-security-policy.zip ./ -x docs\* -x private\* -x vendor\* -x .\* -x CHANGELOG.md -x CODE_OF_CONDUCT.md -x composer.json -x composer.lock -x CONTRIBUTING.md -x LICENSE.md -x phpcs.xml -x SECURITY.md
24+
- uses: softprops/action-gh-release@v2
25+
with:
26+
draft: true
27+
files: humanity-content-security-policy.zip
28+
target_commitish: main

‎.github/workflows/build-staging.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
push:
3+
branches: [staging]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- run: composer install
11+
- run: composer lint
12+
- run: cd private && corepack enable && yarn && yarn lint && cd ..
13+
build:
14+
runs-on: ubuntu-latest
15+
needs: lint
16+
permissions:
17+
contents: write
18+
steps:
19+
- uses: actions/checkout@v4
20+
- run: composer install --no-ansi --no-dev --no-interaction --no-plugins --no-progress --no-scripts --classmap-authoritative
21+
- run: composer du -o
22+
- run: cd private && corepack enable && yarn && yarn build && cd ..
23+
- run: zip -r humanity-content-security-policy-staging.zip ./ -x docs\* -x private\* -x vendor\* -x .\* -x CHANGELOG.md -x CODE_OF_CONDUCT.md -x composer.json -x composer.lock -x CONTRIBUTING.md -x LICENSE.md -x phpcs.xml -x SECURITY.md
24+
- uses: softprops/action-gh-release@v2
25+
with:
26+
draft: true
27+
files: humanity-content-security-policy-staging.zip
28+
target_commitish: main

‎.travis.yml

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.